1
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
71 public long getCategoryId() {
72 return categoryId;
73 }
74
75
76
81 public void setCategoryId(long categoryId) {
82 this.categoryId = categoryId;
83 }
84
85
86
91 public long getCompanyId() {
92 return companyId;
93 }
94
95
96
101 public void setCompanyId(long companyId) {
102 this.companyId = companyId;
103 }
104
105
106
111 public java.util.Calendar getCreateDate() {
112 return createDate;
113 }
114
115
116
121 public void setCreateDate(java.util.Calendar createDate) {
122 this.createDate = createDate;
123 }
124
125
126
131 public java.lang.String getDescription() {
132 return description;
133 }
134
135
136
141 public void setDescription(java.lang.String description) {
142 this.description = description;
143 }
144
145
146
151 public long getGroupId() {
152 return groupId;
153 }
154
155
156
161 public void setGroupId(long groupId) {
162 this.groupId = groupId;
163 }
164
165
166
171 public java.util.Calendar getLastPostDate() {
172 return lastPostDate;
173 }
174
175
176
181 public void setLastPostDate(java.util.Calendar lastPostDate) {
182 this.lastPostDate = lastPostDate;
183 }
184
185
186
191 public java.util.Calendar getModifiedDate() {
192 return modifiedDate;
193 }
194
195
196
201 public void setModifiedDate(java.util.Calendar modifiedDate) {
202 this.modifiedDate = modifiedDate;
203 }
204
205
206
211 public java.lang.String getName() {
212 return name;
213 }
214
215
216
221 public void setName(java.lang.String name) {
222 this.name = name;
223 }
224
225
226
231 public long getParentCategoryId() {
232 return parentCategoryId;
233 }
234
235
236
241 public void setParentCategoryId(long parentCategoryId) {
242 this.parentCategoryId = parentCategoryId;
243 }
244
245
246
251 public long getPrimaryKey() {
252 return primaryKey;
253 }
254
255
256
261 public void setPrimaryKey(long primaryKey) {
262 this.primaryKey = primaryKey;
263 }
264
265
266
271 public long getUserId() {
272 return userId;
273 }
274
275
276
281 public void setUserId(long userId) {
282 this.userId = userId;
283 }
284
285
286
291 public java.lang.String getUserName() {
292 return userName;
293 }
294
295
296
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 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
463 public static org.apache.axis.description.TypeDesc getTypeDesc() {
464 return typeDesc;
465 }
466
467
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
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