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