1   /**
2    * WebsiteSoap.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package com.liferay.client.soap.portal.model;
9   
10  public class WebsiteSoap  implements java.io.Serializable {
11      private long classNameId;
12  
13      private long classPK;
14  
15      private long companyId;
16  
17      private java.util.Calendar createDate;
18  
19      private java.util.Calendar modifiedDate;
20  
21      private boolean primary;
22  
23      private long primaryKey;
24  
25      private int typeId;
26  
27      private java.lang.String url;
28  
29      private long userId;
30  
31      private java.lang.String userName;
32  
33      private long websiteId;
34  
35      public WebsiteSoap() {
36      }
37  
38      public WebsiteSoap(
39             long classNameId,
40             long classPK,
41             long companyId,
42             java.util.Calendar createDate,
43             java.util.Calendar modifiedDate,
44             boolean primary,
45             long primaryKey,
46             int typeId,
47             java.lang.String url,
48             long userId,
49             java.lang.String userName,
50             long websiteId) {
51             this.classNameId = classNameId;
52             this.classPK = classPK;
53             this.companyId = companyId;
54             this.createDate = createDate;
55             this.modifiedDate = modifiedDate;
56             this.primary = primary;
57             this.primaryKey = primaryKey;
58             this.typeId = typeId;
59             this.url = url;
60             this.userId = userId;
61             this.userName = userName;
62             this.websiteId = websiteId;
63      }
64  
65  
66      /**
67       * Gets the classNameId value for this WebsiteSoap.
68       * 
69       * @return classNameId
70       */
71      public long getClassNameId() {
72          return classNameId;
73      }
74  
75  
76      /**
77       * Sets the classNameId value for this WebsiteSoap.
78       * 
79       * @param classNameId
80       */
81      public void setClassNameId(long classNameId) {
82          this.classNameId = classNameId;
83      }
84  
85  
86      /**
87       * Gets the classPK value for this WebsiteSoap.
88       * 
89       * @return classPK
90       */
91      public long getClassPK() {
92          return classPK;
93      }
94  
95  
96      /**
97       * Sets the classPK value for this WebsiteSoap.
98       * 
99       * @param classPK
100      */
101     public void setClassPK(long classPK) {
102         this.classPK = classPK;
103     }
104 
105 
106     /**
107      * Gets the companyId value for this WebsiteSoap.
108      * 
109      * @return companyId
110      */
111     public long getCompanyId() {
112         return companyId;
113     }
114 
115 
116     /**
117      * Sets the companyId value for this WebsiteSoap.
118      * 
119      * @param companyId
120      */
121     public void setCompanyId(long companyId) {
122         this.companyId = companyId;
123     }
124 
125 
126     /**
127      * Gets the createDate value for this WebsiteSoap.
128      * 
129      * @return createDate
130      */
131     public java.util.Calendar getCreateDate() {
132         return createDate;
133     }
134 
135 
136     /**
137      * Sets the createDate value for this WebsiteSoap.
138      * 
139      * @param createDate
140      */
141     public void setCreateDate(java.util.Calendar createDate) {
142         this.createDate = createDate;
143     }
144 
145 
146     /**
147      * Gets the modifiedDate value for this WebsiteSoap.
148      * 
149      * @return modifiedDate
150      */
151     public java.util.Calendar getModifiedDate() {
152         return modifiedDate;
153     }
154 
155 
156     /**
157      * Sets the modifiedDate value for this WebsiteSoap.
158      * 
159      * @param modifiedDate
160      */
161     public void setModifiedDate(java.util.Calendar modifiedDate) {
162         this.modifiedDate = modifiedDate;
163     }
164 
165 
166     /**
167      * Gets the primary value for this WebsiteSoap.
168      * 
169      * @return primary
170      */
171     public boolean isPrimary() {
172         return primary;
173     }
174 
175 
176     /**
177      * Sets the primary value for this WebsiteSoap.
178      * 
179      * @param primary
180      */
181     public void setPrimary(boolean primary) {
182         this.primary = primary;
183     }
184 
185 
186     /**
187      * Gets the primaryKey value for this WebsiteSoap.
188      * 
189      * @return primaryKey
190      */
191     public long getPrimaryKey() {
192         return primaryKey;
193     }
194 
195 
196     /**
197      * Sets the primaryKey value for this WebsiteSoap.
198      * 
199      * @param primaryKey
200      */
201     public void setPrimaryKey(long primaryKey) {
202         this.primaryKey = primaryKey;
203     }
204 
205 
206     /**
207      * Gets the typeId value for this WebsiteSoap.
208      * 
209      * @return typeId
210      */
211     public int getTypeId() {
212         return typeId;
213     }
214 
215 
216     /**
217      * Sets the typeId value for this WebsiteSoap.
218      * 
219      * @param typeId
220      */
221     public void setTypeId(int typeId) {
222         this.typeId = typeId;
223     }
224 
225 
226     /**
227      * Gets the url value for this WebsiteSoap.
228      * 
229      * @return url
230      */
231     public java.lang.String getUrl() {
232         return url;
233     }
234 
235 
236     /**
237      * Sets the url value for this WebsiteSoap.
238      * 
239      * @param url
240      */
241     public void setUrl(java.lang.String url) {
242         this.url = url;
243     }
244 
245 
246     /**
247      * Gets the userId value for this WebsiteSoap.
248      * 
249      * @return userId
250      */
251     public long getUserId() {
252         return userId;
253     }
254 
255 
256     /**
257      * Sets the userId value for this WebsiteSoap.
258      * 
259      * @param userId
260      */
261     public void setUserId(long userId) {
262         this.userId = userId;
263     }
264 
265 
266     /**
267      * Gets the userName value for this WebsiteSoap.
268      * 
269      * @return userName
270      */
271     public java.lang.String getUserName() {
272         return userName;
273     }
274 
275 
276     /**
277      * Sets the userName value for this WebsiteSoap.
278      * 
279      * @param userName
280      */
281     public void setUserName(java.lang.String userName) {
282         this.userName = userName;
283     }
284 
285 
286     /**
287      * Gets the websiteId value for this WebsiteSoap.
288      * 
289      * @return websiteId
290      */
291     public long getWebsiteId() {
292         return websiteId;
293     }
294 
295 
296     /**
297      * Sets the websiteId value for this WebsiteSoap.
298      * 
299      * @param websiteId
300      */
301     public void setWebsiteId(long websiteId) {
302         this.websiteId = websiteId;
303     }
304 
305     private java.lang.Object __equalsCalc = null;
306     public synchronized boolean equals(java.lang.Object obj) {
307         if (!(obj instanceof WebsiteSoap)) return false;
308         WebsiteSoap other = (WebsiteSoap) obj;
309         if (obj == null) return false;
310         if (this == obj) return true;
311         if (__equalsCalc != null) {
312             return (__equalsCalc == obj);
313         }
314         __equalsCalc = obj;
315         boolean _equals;
316         _equals = true && 
317             this.classNameId == other.getClassNameId() &&
318             this.classPK == other.getClassPK() &&
319             this.companyId == other.getCompanyId() &&
320             ((this.createDate==null && other.getCreateDate()==null) || 
321              (this.createDate!=null &&
322               this.createDate.equals(other.getCreateDate()))) &&
323             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
324              (this.modifiedDate!=null &&
325               this.modifiedDate.equals(other.getModifiedDate()))) &&
326             this.primary == other.isPrimary() &&
327             this.primaryKey == other.getPrimaryKey() &&
328             this.typeId == other.getTypeId() &&
329             ((this.url==null && other.getUrl()==null) || 
330              (this.url!=null &&
331               this.url.equals(other.getUrl()))) &&
332             this.userId == other.getUserId() &&
333             ((this.userName==null && other.getUserName()==null) || 
334              (this.userName!=null &&
335               this.userName.equals(other.getUserName()))) &&
336             this.websiteId == other.getWebsiteId();
337         __equalsCalc = null;
338         return _equals;
339     }
340 
341     private boolean __hashCodeCalc = false;
342     public synchronized int hashCode() {
343         if (__hashCodeCalc) {
344             return 0;
345         }
346         __hashCodeCalc = true;
347         int _hashCode = 1;
348         _hashCode += new Long(getClassNameId()).hashCode();
349         _hashCode += new Long(getClassPK()).hashCode();
350         _hashCode += new Long(getCompanyId()).hashCode();
351         if (getCreateDate() != null) {
352             _hashCode += getCreateDate().hashCode();
353         }
354         if (getModifiedDate() != null) {
355             _hashCode += getModifiedDate().hashCode();
356         }
357         _hashCode += (isPrimary() ? Boolean.TRUE : Boolean.FALSE).hashCode();
358         _hashCode += new Long(getPrimaryKey()).hashCode();
359         _hashCode += getTypeId();
360         if (getUrl() != null) {
361             _hashCode += getUrl().hashCode();
362         }
363         _hashCode += new Long(getUserId()).hashCode();
364         if (getUserName() != null) {
365             _hashCode += getUserName().hashCode();
366         }
367         _hashCode += new Long(getWebsiteId()).hashCode();
368         __hashCodeCalc = false;
369         return _hashCode;
370     }
371 
372     // Type metadata
373     private static org.apache.axis.description.TypeDesc typeDesc =
374         new org.apache.axis.description.TypeDesc(WebsiteSoap.class, true);
375 
376     static {
377         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "WebsiteSoap"));
378         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
379         elemField.setFieldName("classNameId");
380         elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
381         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
382         elemField.setNillable(false);
383         typeDesc.addFieldDesc(elemField);
384         elemField = new org.apache.axis.description.ElementDesc();
385         elemField.setFieldName("classPK");
386         elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
387         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
388         elemField.setNillable(false);
389         typeDesc.addFieldDesc(elemField);
390         elemField = new org.apache.axis.description.ElementDesc();
391         elemField.setFieldName("companyId");
392         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
393         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
394         elemField.setNillable(false);
395         typeDesc.addFieldDesc(elemField);
396         elemField = new org.apache.axis.description.ElementDesc();
397         elemField.setFieldName("createDate");
398         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
399         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
400         elemField.setNillable(true);
401         typeDesc.addFieldDesc(elemField);
402         elemField = new org.apache.axis.description.ElementDesc();
403         elemField.setFieldName("modifiedDate");
404         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
405         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
406         elemField.setNillable(true);
407         typeDesc.addFieldDesc(elemField);
408         elemField = new org.apache.axis.description.ElementDesc();
409         elemField.setFieldName("primary");
410         elemField.setXmlName(new javax.xml.namespace.QName("", "primary"));
411         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
412         elemField.setNillable(false);
413         typeDesc.addFieldDesc(elemField);
414         elemField = new org.apache.axis.description.ElementDesc();
415         elemField.setFieldName("primaryKey");
416         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
417         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
418         elemField.setNillable(false);
419         typeDesc.addFieldDesc(elemField);
420         elemField = new org.apache.axis.description.ElementDesc();
421         elemField.setFieldName("typeId");
422         elemField.setXmlName(new javax.xml.namespace.QName("", "typeId"));
423         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
424         elemField.setNillable(false);
425         typeDesc.addFieldDesc(elemField);
426         elemField = new org.apache.axis.description.ElementDesc();
427         elemField.setFieldName("url");
428         elemField.setXmlName(new javax.xml.namespace.QName("", "url"));
429         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
430         elemField.setNillable(true);
431         typeDesc.addFieldDesc(elemField);
432         elemField = new org.apache.axis.description.ElementDesc();
433         elemField.setFieldName("userId");
434         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
435         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
436         elemField.setNillable(false);
437         typeDesc.addFieldDesc(elemField);
438         elemField = new org.apache.axis.description.ElementDesc();
439         elemField.setFieldName("userName");
440         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
441         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
442         elemField.setNillable(true);
443         typeDesc.addFieldDesc(elemField);
444         elemField = new org.apache.axis.description.ElementDesc();
445         elemField.setFieldName("websiteId");
446         elemField.setXmlName(new javax.xml.namespace.QName("", "websiteId"));
447         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
448         elemField.setNillable(false);
449         typeDesc.addFieldDesc(elemField);
450     }
451 
452     /**
453      * Return type metadata object
454      */
455     public static org.apache.axis.description.TypeDesc getTypeDesc() {
456         return typeDesc;
457     }
458 
459     /**
460      * Get Custom Serializer
461      */
462     public static org.apache.axis.encoding.Serializer getSerializer(
463            java.lang.String mechType, 
464            java.lang.Class _javaType,  
465            javax.xml.namespace.QName _xmlType) {
466         return 
467           new  org.apache.axis.encoding.ser.BeanSerializer(
468             _javaType, _xmlType, typeDesc);
469     }
470 
471     /**
472      * Get Custom Deserializer
473      */
474     public static org.apache.axis.encoding.Deserializer getDeserializer(
475            java.lang.String mechType, 
476            java.lang.Class _javaType,  
477            javax.xml.namespace.QName _xmlType) {
478         return 
479           new  org.apache.axis.encoding.ser.BeanDeserializer(
480             _javaType, _xmlType, typeDesc);
481     }
482 
483 }
484