1
7
8 package com.liferay.client.soap.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 int messageCount;
24
25 private java.util.Calendar modifiedDate;
26
27 private java.lang.String name;
28
29 private long parentCategoryId;
30
31 private long primaryKey;
32
33 private int threadCount;
34
35 private long userId;
36
37 private java.lang.String userName;
38
39 private java.lang.String uuid;
40
41 public MBCategorySoap() {
42 }
43
44 public MBCategorySoap(
45 long categoryId,
46 long companyId,
47 java.util.Calendar createDate,
48 java.lang.String description,
49 long groupId,
50 java.util.Calendar lastPostDate,
51 int messageCount,
52 java.util.Calendar modifiedDate,
53 java.lang.String name,
54 long parentCategoryId,
55 long primaryKey,
56 int threadCount,
57 long userId,
58 java.lang.String userName,
59 java.lang.String uuid) {
60 this.categoryId = categoryId;
61 this.companyId = companyId;
62 this.createDate = createDate;
63 this.description = description;
64 this.groupId = groupId;
65 this.lastPostDate = lastPostDate;
66 this.messageCount = messageCount;
67 this.modifiedDate = modifiedDate;
68 this.name = name;
69 this.parentCategoryId = parentCategoryId;
70 this.primaryKey = primaryKey;
71 this.threadCount = threadCount;
72 this.userId = userId;
73 this.userName = userName;
74 this.uuid = uuid;
75 }
76
77
78
83 public long getCategoryId() {
84 return categoryId;
85 }
86
87
88
93 public void setCategoryId(long categoryId) {
94 this.categoryId = categoryId;
95 }
96
97
98
103 public long getCompanyId() {
104 return companyId;
105 }
106
107
108
113 public void setCompanyId(long companyId) {
114 this.companyId = companyId;
115 }
116
117
118
123 public java.util.Calendar getCreateDate() {
124 return createDate;
125 }
126
127
128
133 public void setCreateDate(java.util.Calendar createDate) {
134 this.createDate = createDate;
135 }
136
137
138
143 public java.lang.String getDescription() {
144 return description;
145 }
146
147
148
153 public void setDescription(java.lang.String description) {
154 this.description = description;
155 }
156
157
158
163 public long getGroupId() {
164 return groupId;
165 }
166
167
168
173 public void setGroupId(long groupId) {
174 this.groupId = groupId;
175 }
176
177
178
183 public java.util.Calendar getLastPostDate() {
184 return lastPostDate;
185 }
186
187
188
193 public void setLastPostDate(java.util.Calendar lastPostDate) {
194 this.lastPostDate = lastPostDate;
195 }
196
197
198
203 public int getMessageCount() {
204 return messageCount;
205 }
206
207
208
213 public void setMessageCount(int messageCount) {
214 this.messageCount = messageCount;
215 }
216
217
218
223 public java.util.Calendar getModifiedDate() {
224 return modifiedDate;
225 }
226
227
228
233 public void setModifiedDate(java.util.Calendar modifiedDate) {
234 this.modifiedDate = modifiedDate;
235 }
236
237
238
243 public java.lang.String getName() {
244 return name;
245 }
246
247
248
253 public void setName(java.lang.String name) {
254 this.name = name;
255 }
256
257
258
263 public long getParentCategoryId() {
264 return parentCategoryId;
265 }
266
267
268
273 public void setParentCategoryId(long parentCategoryId) {
274 this.parentCategoryId = parentCategoryId;
275 }
276
277
278
283 public long getPrimaryKey() {
284 return primaryKey;
285 }
286
287
288
293 public void setPrimaryKey(long primaryKey) {
294 this.primaryKey = primaryKey;
295 }
296
297
298
303 public int getThreadCount() {
304 return threadCount;
305 }
306
307
308
313 public void setThreadCount(int threadCount) {
314 this.threadCount = threadCount;
315 }
316
317
318
323 public long getUserId() {
324 return userId;
325 }
326
327
328
333 public void setUserId(long userId) {
334 this.userId = userId;
335 }
336
337
338
343 public java.lang.String getUserName() {
344 return userName;
345 }
346
347
348
353 public void setUserName(java.lang.String userName) {
354 this.userName = userName;
355 }
356
357
358
363 public java.lang.String getUuid() {
364 return uuid;
365 }
366
367
368
373 public void setUuid(java.lang.String uuid) {
374 this.uuid = uuid;
375 }
376
377 private java.lang.Object __equalsCalc = null;
378 public synchronized boolean equals(java.lang.Object obj) {
379 if (!(obj instanceof MBCategorySoap)) return false;
380 MBCategorySoap other = (MBCategorySoap) obj;
381 if (obj == null) return false;
382 if (this == obj) return true;
383 if (__equalsCalc != null) {
384 return (__equalsCalc == obj);
385 }
386 __equalsCalc = obj;
387 boolean _equals;
388 _equals = true &&
389 this.categoryId == other.getCategoryId() &&
390 this.companyId == other.getCompanyId() &&
391 ((this.createDate==null && other.getCreateDate()==null) ||
392 (this.createDate!=null &&
393 this.createDate.equals(other.getCreateDate()))) &&
394 ((this.description==null && other.getDescription()==null) ||
395 (this.description!=null &&
396 this.description.equals(other.getDescription()))) &&
397 this.groupId == other.getGroupId() &&
398 ((this.lastPostDate==null && other.getLastPostDate()==null) ||
399 (this.lastPostDate!=null &&
400 this.lastPostDate.equals(other.getLastPostDate()))) &&
401 this.messageCount == other.getMessageCount() &&
402 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
403 (this.modifiedDate!=null &&
404 this.modifiedDate.equals(other.getModifiedDate()))) &&
405 ((this.name==null && other.getName()==null) ||
406 (this.name!=null &&
407 this.name.equals(other.getName()))) &&
408 this.parentCategoryId == other.getParentCategoryId() &&
409 this.primaryKey == other.getPrimaryKey() &&
410 this.threadCount == other.getThreadCount() &&
411 this.userId == other.getUserId() &&
412 ((this.userName==null && other.getUserName()==null) ||
413 (this.userName!=null &&
414 this.userName.equals(other.getUserName()))) &&
415 ((this.uuid==null && other.getUuid()==null) ||
416 (this.uuid!=null &&
417 this.uuid.equals(other.getUuid())));
418 __equalsCalc = null;
419 return _equals;
420 }
421
422 private boolean __hashCodeCalc = false;
423 public synchronized int hashCode() {
424 if (__hashCodeCalc) {
425 return 0;
426 }
427 __hashCodeCalc = true;
428 int _hashCode = 1;
429 _hashCode += new Long(getCategoryId()).hashCode();
430 _hashCode += new Long(getCompanyId()).hashCode();
431 if (getCreateDate() != null) {
432 _hashCode += getCreateDate().hashCode();
433 }
434 if (getDescription() != null) {
435 _hashCode += getDescription().hashCode();
436 }
437 _hashCode += new Long(getGroupId()).hashCode();
438 if (getLastPostDate() != null) {
439 _hashCode += getLastPostDate().hashCode();
440 }
441 _hashCode += getMessageCount();
442 if (getModifiedDate() != null) {
443 _hashCode += getModifiedDate().hashCode();
444 }
445 if (getName() != null) {
446 _hashCode += getName().hashCode();
447 }
448 _hashCode += new Long(getParentCategoryId()).hashCode();
449 _hashCode += new Long(getPrimaryKey()).hashCode();
450 _hashCode += getThreadCount();
451 _hashCode += new Long(getUserId()).hashCode();
452 if (getUserName() != null) {
453 _hashCode += getUserName().hashCode();
454 }
455 if (getUuid() != null) {
456 _hashCode += getUuid().hashCode();
457 }
458 __hashCodeCalc = false;
459 return _hashCode;
460 }
461
462 private static org.apache.axis.description.TypeDesc typeDesc =
464 new org.apache.axis.description.TypeDesc(MBCategorySoap.class, true);
465
466 static {
467 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.messageboards.portlet.liferay.com", "MBCategorySoap"));
468 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
469 elemField.setFieldName("categoryId");
470 elemField.setXmlName(new javax.xml.namespace.QName("", "categoryId"));
471 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
472 elemField.setNillable(false);
473 typeDesc.addFieldDesc(elemField);
474 elemField = new org.apache.axis.description.ElementDesc();
475 elemField.setFieldName("companyId");
476 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
477 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
478 elemField.setNillable(false);
479 typeDesc.addFieldDesc(elemField);
480 elemField = new org.apache.axis.description.ElementDesc();
481 elemField.setFieldName("createDate");
482 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
483 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
484 elemField.setNillable(true);
485 typeDesc.addFieldDesc(elemField);
486 elemField = new org.apache.axis.description.ElementDesc();
487 elemField.setFieldName("description");
488 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
489 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
490 elemField.setNillable(true);
491 typeDesc.addFieldDesc(elemField);
492 elemField = new org.apache.axis.description.ElementDesc();
493 elemField.setFieldName("groupId");
494 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
495 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
496 elemField.setNillable(false);
497 typeDesc.addFieldDesc(elemField);
498 elemField = new org.apache.axis.description.ElementDesc();
499 elemField.setFieldName("lastPostDate");
500 elemField.setXmlName(new javax.xml.namespace.QName("", "lastPostDate"));
501 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
502 elemField.setNillable(true);
503 typeDesc.addFieldDesc(elemField);
504 elemField = new org.apache.axis.description.ElementDesc();
505 elemField.setFieldName("messageCount");
506 elemField.setXmlName(new javax.xml.namespace.QName("", "messageCount"));
507 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
508 elemField.setNillable(false);
509 typeDesc.addFieldDesc(elemField);
510 elemField = new org.apache.axis.description.ElementDesc();
511 elemField.setFieldName("modifiedDate");
512 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
513 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
514 elemField.setNillable(true);
515 typeDesc.addFieldDesc(elemField);
516 elemField = new org.apache.axis.description.ElementDesc();
517 elemField.setFieldName("name");
518 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
519 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
520 elemField.setNillable(true);
521 typeDesc.addFieldDesc(elemField);
522 elemField = new org.apache.axis.description.ElementDesc();
523 elemField.setFieldName("parentCategoryId");
524 elemField.setXmlName(new javax.xml.namespace.QName("", "parentCategoryId"));
525 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
526 elemField.setNillable(false);
527 typeDesc.addFieldDesc(elemField);
528 elemField = new org.apache.axis.description.ElementDesc();
529 elemField.setFieldName("primaryKey");
530 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
531 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
532 elemField.setNillable(false);
533 typeDesc.addFieldDesc(elemField);
534 elemField = new org.apache.axis.description.ElementDesc();
535 elemField.setFieldName("threadCount");
536 elemField.setXmlName(new javax.xml.namespace.QName("", "threadCount"));
537 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
538 elemField.setNillable(false);
539 typeDesc.addFieldDesc(elemField);
540 elemField = new org.apache.axis.description.ElementDesc();
541 elemField.setFieldName("userId");
542 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
543 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
544 elemField.setNillable(false);
545 typeDesc.addFieldDesc(elemField);
546 elemField = new org.apache.axis.description.ElementDesc();
547 elemField.setFieldName("userName");
548 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
549 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
550 elemField.setNillable(true);
551 typeDesc.addFieldDesc(elemField);
552 elemField = new org.apache.axis.description.ElementDesc();
553 elemField.setFieldName("uuid");
554 elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
555 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
556 elemField.setNillable(true);
557 typeDesc.addFieldDesc(elemField);
558 }
559
560
563 public static org.apache.axis.description.TypeDesc getTypeDesc() {
564 return typeDesc;
565 }
566
567
570 public static org.apache.axis.encoding.Serializer getSerializer(
571 java.lang.String mechType,
572 java.lang.Class _javaType,
573 javax.xml.namespace.QName _xmlType) {
574 return
575 new org.apache.axis.encoding.ser.BeanSerializer(
576 _javaType, _xmlType, typeDesc);
577 }
578
579
582 public static org.apache.axis.encoding.Deserializer getDeserializer(
583 java.lang.String mechType,
584 java.lang.Class _javaType,
585 javax.xml.namespace.QName _xmlType) {
586 return
587 new org.apache.axis.encoding.ser.BeanDeserializer(
588 _javaType, _xmlType, typeDesc);
589 }
590
591 }
592