1
7
8 package com.liferay.client.soap.portlet.messageboards.model;
9
10 public class MBMessageSoap implements java.io.Serializable {
11 private boolean anonymous;
12
13 private boolean attachments;
14
15 private java.lang.String body;
16
17 private long categoryId;
18
19 private long classNameId;
20
21 private long classPK;
22
23 private long companyId;
24
25 private java.util.Calendar createDate;
26
27 private long groupId;
28
29 private long messageId;
30
31 private java.util.Calendar modifiedDate;
32
33 private long parentMessageId;
34
35 private long primaryKey;
36
37 private double priority;
38
39 private java.lang.String subject;
40
41 private long threadId;
42
43 private long userId;
44
45 private java.lang.String userName;
46
47 private java.lang.String uuid;
48
49 public MBMessageSoap() {
50 }
51
52 public MBMessageSoap(
53 boolean anonymous,
54 boolean attachments,
55 java.lang.String body,
56 long categoryId,
57 long classNameId,
58 long classPK,
59 long companyId,
60 java.util.Calendar createDate,
61 long groupId,
62 long messageId,
63 java.util.Calendar modifiedDate,
64 long parentMessageId,
65 long primaryKey,
66 double priority,
67 java.lang.String subject,
68 long threadId,
69 long userId,
70 java.lang.String userName,
71 java.lang.String uuid) {
72 this.anonymous = anonymous;
73 this.attachments = attachments;
74 this.body = body;
75 this.categoryId = categoryId;
76 this.classNameId = classNameId;
77 this.classPK = classPK;
78 this.companyId = companyId;
79 this.createDate = createDate;
80 this.groupId = groupId;
81 this.messageId = messageId;
82 this.modifiedDate = modifiedDate;
83 this.parentMessageId = parentMessageId;
84 this.primaryKey = primaryKey;
85 this.priority = priority;
86 this.subject = subject;
87 this.threadId = threadId;
88 this.userId = userId;
89 this.userName = userName;
90 this.uuid = uuid;
91 }
92
93
94
99 public boolean isAnonymous() {
100 return anonymous;
101 }
102
103
104
109 public void setAnonymous(boolean anonymous) {
110 this.anonymous = anonymous;
111 }
112
113
114
119 public boolean isAttachments() {
120 return attachments;
121 }
122
123
124
129 public void setAttachments(boolean attachments) {
130 this.attachments = attachments;
131 }
132
133
134
139 public java.lang.String getBody() {
140 return body;
141 }
142
143
144
149 public void setBody(java.lang.String body) {
150 this.body = body;
151 }
152
153
154
159 public long getCategoryId() {
160 return categoryId;
161 }
162
163
164
169 public void setCategoryId(long categoryId) {
170 this.categoryId = categoryId;
171 }
172
173
174
179 public long getClassNameId() {
180 return classNameId;
181 }
182
183
184
189 public void setClassNameId(long classNameId) {
190 this.classNameId = classNameId;
191 }
192
193
194
199 public long getClassPK() {
200 return classPK;
201 }
202
203
204
209 public void setClassPK(long classPK) {
210 this.classPK = classPK;
211 }
212
213
214
219 public long getCompanyId() {
220 return companyId;
221 }
222
223
224
229 public void setCompanyId(long companyId) {
230 this.companyId = companyId;
231 }
232
233
234
239 public java.util.Calendar getCreateDate() {
240 return createDate;
241 }
242
243
244
249 public void setCreateDate(java.util.Calendar createDate) {
250 this.createDate = createDate;
251 }
252
253
254
259 public long getGroupId() {
260 return groupId;
261 }
262
263
264
269 public void setGroupId(long groupId) {
270 this.groupId = groupId;
271 }
272
273
274
279 public long getMessageId() {
280 return messageId;
281 }
282
283
284
289 public void setMessageId(long messageId) {
290 this.messageId = messageId;
291 }
292
293
294
299 public java.util.Calendar getModifiedDate() {
300 return modifiedDate;
301 }
302
303
304
309 public void setModifiedDate(java.util.Calendar modifiedDate) {
310 this.modifiedDate = modifiedDate;
311 }
312
313
314
319 public long getParentMessageId() {
320 return parentMessageId;
321 }
322
323
324
329 public void setParentMessageId(long parentMessageId) {
330 this.parentMessageId = parentMessageId;
331 }
332
333
334
339 public long getPrimaryKey() {
340 return primaryKey;
341 }
342
343
344
349 public void setPrimaryKey(long primaryKey) {
350 this.primaryKey = primaryKey;
351 }
352
353
354
359 public double getPriority() {
360 return priority;
361 }
362
363
364
369 public void setPriority(double priority) {
370 this.priority = priority;
371 }
372
373
374
379 public java.lang.String getSubject() {
380 return subject;
381 }
382
383
384
389 public void setSubject(java.lang.String subject) {
390 this.subject = subject;
391 }
392
393
394
399 public long getThreadId() {
400 return threadId;
401 }
402
403
404
409 public void setThreadId(long threadId) {
410 this.threadId = threadId;
411 }
412
413
414
419 public long getUserId() {
420 return userId;
421 }
422
423
424
429 public void setUserId(long userId) {
430 this.userId = userId;
431 }
432
433
434
439 public java.lang.String getUserName() {
440 return userName;
441 }
442
443
444
449 public void setUserName(java.lang.String userName) {
450 this.userName = userName;
451 }
452
453
454
459 public java.lang.String getUuid() {
460 return uuid;
461 }
462
463
464
469 public void setUuid(java.lang.String uuid) {
470 this.uuid = uuid;
471 }
472
473 private java.lang.Object __equalsCalc = null;
474 public synchronized boolean equals(java.lang.Object obj) {
475 if (!(obj instanceof MBMessageSoap)) return false;
476 MBMessageSoap other = (MBMessageSoap) obj;
477 if (obj == null) return false;
478 if (this == obj) return true;
479 if (__equalsCalc != null) {
480 return (__equalsCalc == obj);
481 }
482 __equalsCalc = obj;
483 boolean _equals;
484 _equals = true &&
485 this.anonymous == other.isAnonymous() &&
486 this.attachments == other.isAttachments() &&
487 ((this.body==null && other.getBody()==null) ||
488 (this.body!=null &&
489 this.body.equals(other.getBody()))) &&
490 this.categoryId == other.getCategoryId() &&
491 this.classNameId == other.getClassNameId() &&
492 this.classPK == other.getClassPK() &&
493 this.companyId == other.getCompanyId() &&
494 ((this.createDate==null && other.getCreateDate()==null) ||
495 (this.createDate!=null &&
496 this.createDate.equals(other.getCreateDate()))) &&
497 this.groupId == other.getGroupId() &&
498 this.messageId == other.getMessageId() &&
499 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
500 (this.modifiedDate!=null &&
501 this.modifiedDate.equals(other.getModifiedDate()))) &&
502 this.parentMessageId == other.getParentMessageId() &&
503 this.primaryKey == other.getPrimaryKey() &&
504 this.priority == other.getPriority() &&
505 ((this.subject==null && other.getSubject()==null) ||
506 (this.subject!=null &&
507 this.subject.equals(other.getSubject()))) &&
508 this.threadId == other.getThreadId() &&
509 this.userId == other.getUserId() &&
510 ((this.userName==null && other.getUserName()==null) ||
511 (this.userName!=null &&
512 this.userName.equals(other.getUserName()))) &&
513 ((this.uuid==null && other.getUuid()==null) ||
514 (this.uuid!=null &&
515 this.uuid.equals(other.getUuid())));
516 __equalsCalc = null;
517 return _equals;
518 }
519
520 private boolean __hashCodeCalc = false;
521 public synchronized int hashCode() {
522 if (__hashCodeCalc) {
523 return 0;
524 }
525 __hashCodeCalc = true;
526 int _hashCode = 1;
527 _hashCode += (isAnonymous() ? Boolean.TRUE : Boolean.FALSE).hashCode();
528 _hashCode += (isAttachments() ? Boolean.TRUE : Boolean.FALSE).hashCode();
529 if (getBody() != null) {
530 _hashCode += getBody().hashCode();
531 }
532 _hashCode += new Long(getCategoryId()).hashCode();
533 _hashCode += new Long(getClassNameId()).hashCode();
534 _hashCode += new Long(getClassPK()).hashCode();
535 _hashCode += new Long(getCompanyId()).hashCode();
536 if (getCreateDate() != null) {
537 _hashCode += getCreateDate().hashCode();
538 }
539 _hashCode += new Long(getGroupId()).hashCode();
540 _hashCode += new Long(getMessageId()).hashCode();
541 if (getModifiedDate() != null) {
542 _hashCode += getModifiedDate().hashCode();
543 }
544 _hashCode += new Long(getParentMessageId()).hashCode();
545 _hashCode += new Long(getPrimaryKey()).hashCode();
546 _hashCode += new Double(getPriority()).hashCode();
547 if (getSubject() != null) {
548 _hashCode += getSubject().hashCode();
549 }
550 _hashCode += new Long(getThreadId()).hashCode();
551 _hashCode += new Long(getUserId()).hashCode();
552 if (getUserName() != null) {
553 _hashCode += getUserName().hashCode();
554 }
555 if (getUuid() != null) {
556 _hashCode += getUuid().hashCode();
557 }
558 __hashCodeCalc = false;
559 return _hashCode;
560 }
561
562 private static org.apache.axis.description.TypeDesc typeDesc =
564 new org.apache.axis.description.TypeDesc(MBMessageSoap.class, true);
565
566 static {
567 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.messageboards.portlet.liferay.com", "MBMessageSoap"));
568 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
569 elemField.setFieldName("anonymous");
570 elemField.setXmlName(new javax.xml.namespace.QName("", "anonymous"));
571 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
572 elemField.setNillable(false);
573 typeDesc.addFieldDesc(elemField);
574 elemField = new org.apache.axis.description.ElementDesc();
575 elemField.setFieldName("attachments");
576 elemField.setXmlName(new javax.xml.namespace.QName("", "attachments"));
577 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
578 elemField.setNillable(false);
579 typeDesc.addFieldDesc(elemField);
580 elemField = new org.apache.axis.description.ElementDesc();
581 elemField.setFieldName("body");
582 elemField.setXmlName(new javax.xml.namespace.QName("", "body"));
583 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
584 elemField.setNillable(true);
585 typeDesc.addFieldDesc(elemField);
586 elemField = new org.apache.axis.description.ElementDesc();
587 elemField.setFieldName("categoryId");
588 elemField.setXmlName(new javax.xml.namespace.QName("", "categoryId"));
589 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
590 elemField.setNillable(false);
591 typeDesc.addFieldDesc(elemField);
592 elemField = new org.apache.axis.description.ElementDesc();
593 elemField.setFieldName("classNameId");
594 elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
595 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
596 elemField.setNillable(false);
597 typeDesc.addFieldDesc(elemField);
598 elemField = new org.apache.axis.description.ElementDesc();
599 elemField.setFieldName("classPK");
600 elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
601 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
602 elemField.setNillable(false);
603 typeDesc.addFieldDesc(elemField);
604 elemField = new org.apache.axis.description.ElementDesc();
605 elemField.setFieldName("companyId");
606 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
607 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
608 elemField.setNillable(false);
609 typeDesc.addFieldDesc(elemField);
610 elemField = new org.apache.axis.description.ElementDesc();
611 elemField.setFieldName("createDate");
612 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
613 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
614 elemField.setNillable(true);
615 typeDesc.addFieldDesc(elemField);
616 elemField = new org.apache.axis.description.ElementDesc();
617 elemField.setFieldName("groupId");
618 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
619 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
620 elemField.setNillable(false);
621 typeDesc.addFieldDesc(elemField);
622 elemField = new org.apache.axis.description.ElementDesc();
623 elemField.setFieldName("messageId");
624 elemField.setXmlName(new javax.xml.namespace.QName("", "messageId"));
625 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
626 elemField.setNillable(false);
627 typeDesc.addFieldDesc(elemField);
628 elemField = new org.apache.axis.description.ElementDesc();
629 elemField.setFieldName("modifiedDate");
630 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
631 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
632 elemField.setNillable(true);
633 typeDesc.addFieldDesc(elemField);
634 elemField = new org.apache.axis.description.ElementDesc();
635 elemField.setFieldName("parentMessageId");
636 elemField.setXmlName(new javax.xml.namespace.QName("", "parentMessageId"));
637 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
638 elemField.setNillable(false);
639 typeDesc.addFieldDesc(elemField);
640 elemField = new org.apache.axis.description.ElementDesc();
641 elemField.setFieldName("primaryKey");
642 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
643 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
644 elemField.setNillable(false);
645 typeDesc.addFieldDesc(elemField);
646 elemField = new org.apache.axis.description.ElementDesc();
647 elemField.setFieldName("priority");
648 elemField.setXmlName(new javax.xml.namespace.QName("", "priority"));
649 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
650 elemField.setNillable(false);
651 typeDesc.addFieldDesc(elemField);
652 elemField = new org.apache.axis.description.ElementDesc();
653 elemField.setFieldName("subject");
654 elemField.setXmlName(new javax.xml.namespace.QName("", "subject"));
655 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
656 elemField.setNillable(true);
657 typeDesc.addFieldDesc(elemField);
658 elemField = new org.apache.axis.description.ElementDesc();
659 elemField.setFieldName("threadId");
660 elemField.setXmlName(new javax.xml.namespace.QName("", "threadId"));
661 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
662 elemField.setNillable(false);
663 typeDesc.addFieldDesc(elemField);
664 elemField = new org.apache.axis.description.ElementDesc();
665 elemField.setFieldName("userId");
666 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
667 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
668 elemField.setNillable(false);
669 typeDesc.addFieldDesc(elemField);
670 elemField = new org.apache.axis.description.ElementDesc();
671 elemField.setFieldName("userName");
672 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
673 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
674 elemField.setNillable(true);
675 typeDesc.addFieldDesc(elemField);
676 elemField = new org.apache.axis.description.ElementDesc();
677 elemField.setFieldName("uuid");
678 elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
679 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
680 elemField.setNillable(true);
681 typeDesc.addFieldDesc(elemField);
682 }
683
684
687 public static org.apache.axis.description.TypeDesc getTypeDesc() {
688 return typeDesc;
689 }
690
691
694 public static org.apache.axis.encoding.Serializer getSerializer(
695 java.lang.String mechType,
696 java.lang.Class _javaType,
697 javax.xml.namespace.QName _xmlType) {
698 return
699 new org.apache.axis.encoding.ser.BeanSerializer(
700 _javaType, _xmlType, typeDesc);
701 }
702
703
706 public static org.apache.axis.encoding.Deserializer getDeserializer(
707 java.lang.String mechType,
708 java.lang.Class _javaType,
709 javax.xml.namespace.QName _xmlType) {
710 return
711 new org.apache.axis.encoding.ser.BeanDeserializer(
712 _javaType, _xmlType, typeDesc);
713 }
714
715 }
716