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