1
7
8 package com.liferay.client.soap.portlet.messageboards.model;
9
10 public class MBThreadSoap implements java.io.Serializable {
11 private long categoryId;
12
13 private long groupId;
14
15 private long lastPostByUserId;
16
17 private java.util.Calendar lastPostDate;
18
19 private int messageCount;
20
21 private long primaryKey;
22
23 private double priority;
24
25 private long rootMessageId;
26
27 private int status;
28
29 private long statusByUserId;
30
31 private java.lang.String statusByUserName;
32
33 private java.util.Calendar statusDate;
34
35 private long threadId;
36
37 private int viewCount;
38
39 public MBThreadSoap() {
40 }
41
42 public MBThreadSoap(
43 long categoryId,
44 long groupId,
45 long lastPostByUserId,
46 java.util.Calendar lastPostDate,
47 int messageCount,
48 long primaryKey,
49 double priority,
50 long rootMessageId,
51 int status,
52 long statusByUserId,
53 java.lang.String statusByUserName,
54 java.util.Calendar statusDate,
55 long threadId,
56 int viewCount) {
57 this.categoryId = categoryId;
58 this.groupId = groupId;
59 this.lastPostByUserId = lastPostByUserId;
60 this.lastPostDate = lastPostDate;
61 this.messageCount = messageCount;
62 this.primaryKey = primaryKey;
63 this.priority = priority;
64 this.rootMessageId = rootMessageId;
65 this.status = status;
66 this.statusByUserId = statusByUserId;
67 this.statusByUserName = statusByUserName;
68 this.statusDate = statusDate;
69 this.threadId = threadId;
70 this.viewCount = viewCount;
71 }
72
73
74
79 public long getCategoryId() {
80 return categoryId;
81 }
82
83
84
89 public void setCategoryId(long categoryId) {
90 this.categoryId = categoryId;
91 }
92
93
94
99 public long getGroupId() {
100 return groupId;
101 }
102
103
104
109 public void setGroupId(long groupId) {
110 this.groupId = groupId;
111 }
112
113
114
119 public long getLastPostByUserId() {
120 return lastPostByUserId;
121 }
122
123
124
129 public void setLastPostByUserId(long lastPostByUserId) {
130 this.lastPostByUserId = lastPostByUserId;
131 }
132
133
134
139 public java.util.Calendar getLastPostDate() {
140 return lastPostDate;
141 }
142
143
144
149 public void setLastPostDate(java.util.Calendar lastPostDate) {
150 this.lastPostDate = lastPostDate;
151 }
152
153
154
159 public int getMessageCount() {
160 return messageCount;
161 }
162
163
164
169 public void setMessageCount(int messageCount) {
170 this.messageCount = messageCount;
171 }
172
173
174
179 public long getPrimaryKey() {
180 return primaryKey;
181 }
182
183
184
189 public void setPrimaryKey(long primaryKey) {
190 this.primaryKey = primaryKey;
191 }
192
193
194
199 public double getPriority() {
200 return priority;
201 }
202
203
204
209 public void setPriority(double priority) {
210 this.priority = priority;
211 }
212
213
214
219 public long getRootMessageId() {
220 return rootMessageId;
221 }
222
223
224
229 public void setRootMessageId(long rootMessageId) {
230 this.rootMessageId = rootMessageId;
231 }
232
233
234
239 public int getStatus() {
240 return status;
241 }
242
243
244
249 public void setStatus(int status) {
250 this.status = status;
251 }
252
253
254
259 public long getStatusByUserId() {
260 return statusByUserId;
261 }
262
263
264
269 public void setStatusByUserId(long statusByUserId) {
270 this.statusByUserId = statusByUserId;
271 }
272
273
274
279 public java.lang.String getStatusByUserName() {
280 return statusByUserName;
281 }
282
283
284
289 public void setStatusByUserName(java.lang.String statusByUserName) {
290 this.statusByUserName = statusByUserName;
291 }
292
293
294
299 public java.util.Calendar getStatusDate() {
300 return statusDate;
301 }
302
303
304
309 public void setStatusDate(java.util.Calendar statusDate) {
310 this.statusDate = statusDate;
311 }
312
313
314
319 public long getThreadId() {
320 return threadId;
321 }
322
323
324
329 public void setThreadId(long threadId) {
330 this.threadId = threadId;
331 }
332
333
334
339 public int getViewCount() {
340 return viewCount;
341 }
342
343
344
349 public void setViewCount(int viewCount) {
350 this.viewCount = viewCount;
351 }
352
353 private java.lang.Object __equalsCalc = null;
354 public synchronized boolean equals(java.lang.Object obj) {
355 if (!(obj instanceof MBThreadSoap)) return false;
356 MBThreadSoap other = (MBThreadSoap) obj;
357 if (obj == null) return false;
358 if (this == obj) return true;
359 if (__equalsCalc != null) {
360 return (__equalsCalc == obj);
361 }
362 __equalsCalc = obj;
363 boolean _equals;
364 _equals = true &&
365 this.categoryId == other.getCategoryId() &&
366 this.groupId == other.getGroupId() &&
367 this.lastPostByUserId == other.getLastPostByUserId() &&
368 ((this.lastPostDate==null && other.getLastPostDate()==null) ||
369 (this.lastPostDate!=null &&
370 this.lastPostDate.equals(other.getLastPostDate()))) &&
371 this.messageCount == other.getMessageCount() &&
372 this.primaryKey == other.getPrimaryKey() &&
373 this.priority == other.getPriority() &&
374 this.rootMessageId == other.getRootMessageId() &&
375 this.status == other.getStatus() &&
376 this.statusByUserId == other.getStatusByUserId() &&
377 ((this.statusByUserName==null && other.getStatusByUserName()==null) ||
378 (this.statusByUserName!=null &&
379 this.statusByUserName.equals(other.getStatusByUserName()))) &&
380 ((this.statusDate==null && other.getStatusDate()==null) ||
381 (this.statusDate!=null &&
382 this.statusDate.equals(other.getStatusDate()))) &&
383 this.threadId == other.getThreadId() &&
384 this.viewCount == other.getViewCount();
385 __equalsCalc = null;
386 return _equals;
387 }
388
389 private boolean __hashCodeCalc = false;
390 public synchronized int hashCode() {
391 if (__hashCodeCalc) {
392 return 0;
393 }
394 __hashCodeCalc = true;
395 int _hashCode = 1;
396 _hashCode += new Long(getCategoryId()).hashCode();
397 _hashCode += new Long(getGroupId()).hashCode();
398 _hashCode += new Long(getLastPostByUserId()).hashCode();
399 if (getLastPostDate() != null) {
400 _hashCode += getLastPostDate().hashCode();
401 }
402 _hashCode += getMessageCount();
403 _hashCode += new Long(getPrimaryKey()).hashCode();
404 _hashCode += new Double(getPriority()).hashCode();
405 _hashCode += new Long(getRootMessageId()).hashCode();
406 _hashCode += getStatus();
407 _hashCode += new Long(getStatusByUserId()).hashCode();
408 if (getStatusByUserName() != null) {
409 _hashCode += getStatusByUserName().hashCode();
410 }
411 if (getStatusDate() != null) {
412 _hashCode += getStatusDate().hashCode();
413 }
414 _hashCode += new Long(getThreadId()).hashCode();
415 _hashCode += getViewCount();
416 __hashCodeCalc = false;
417 return _hashCode;
418 }
419
420 private static org.apache.axis.description.TypeDesc typeDesc =
422 new org.apache.axis.description.TypeDesc(MBThreadSoap.class, true);
423
424 static {
425 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.messageboards.portlet.liferay.com", "MBThreadSoap"));
426 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
427 elemField.setFieldName("categoryId");
428 elemField.setXmlName(new javax.xml.namespace.QName("", "categoryId"));
429 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
430 elemField.setNillable(false);
431 typeDesc.addFieldDesc(elemField);
432 elemField = new org.apache.axis.description.ElementDesc();
433 elemField.setFieldName("groupId");
434 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
435 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
436 elemField.setNillable(false);
437 typeDesc.addFieldDesc(elemField);
438 elemField = new org.apache.axis.description.ElementDesc();
439 elemField.setFieldName("lastPostByUserId");
440 elemField.setXmlName(new javax.xml.namespace.QName("", "lastPostByUserId"));
441 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
442 elemField.setNillable(false);
443 typeDesc.addFieldDesc(elemField);
444 elemField = new org.apache.axis.description.ElementDesc();
445 elemField.setFieldName("lastPostDate");
446 elemField.setXmlName(new javax.xml.namespace.QName("", "lastPostDate"));
447 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
448 elemField.setNillable(true);
449 typeDesc.addFieldDesc(elemField);
450 elemField = new org.apache.axis.description.ElementDesc();
451 elemField.setFieldName("messageCount");
452 elemField.setXmlName(new javax.xml.namespace.QName("", "messageCount"));
453 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
454 elemField.setNillable(false);
455 typeDesc.addFieldDesc(elemField);
456 elemField = new org.apache.axis.description.ElementDesc();
457 elemField.setFieldName("primaryKey");
458 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
459 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
460 elemField.setNillable(false);
461 typeDesc.addFieldDesc(elemField);
462 elemField = new org.apache.axis.description.ElementDesc();
463 elemField.setFieldName("priority");
464 elemField.setXmlName(new javax.xml.namespace.QName("", "priority"));
465 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
466 elemField.setNillable(false);
467 typeDesc.addFieldDesc(elemField);
468 elemField = new org.apache.axis.description.ElementDesc();
469 elemField.setFieldName("rootMessageId");
470 elemField.setXmlName(new javax.xml.namespace.QName("", "rootMessageId"));
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("status");
476 elemField.setXmlName(new javax.xml.namespace.QName("", "status"));
477 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
478 elemField.setNillable(false);
479 typeDesc.addFieldDesc(elemField);
480 elemField = new org.apache.axis.description.ElementDesc();
481 elemField.setFieldName("statusByUserId");
482 elemField.setXmlName(new javax.xml.namespace.QName("", "statusByUserId"));
483 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
484 elemField.setNillable(false);
485 typeDesc.addFieldDesc(elemField);
486 elemField = new org.apache.axis.description.ElementDesc();
487 elemField.setFieldName("statusByUserName");
488 elemField.setXmlName(new javax.xml.namespace.QName("", "statusByUserName"));
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("statusDate");
494 elemField.setXmlName(new javax.xml.namespace.QName("", "statusDate"));
495 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
496 elemField.setNillable(true);
497 typeDesc.addFieldDesc(elemField);
498 elemField = new org.apache.axis.description.ElementDesc();
499 elemField.setFieldName("threadId");
500 elemField.setXmlName(new javax.xml.namespace.QName("", "threadId"));
501 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
502 elemField.setNillable(false);
503 typeDesc.addFieldDesc(elemField);
504 elemField = new org.apache.axis.description.ElementDesc();
505 elemField.setFieldName("viewCount");
506 elemField.setXmlName(new javax.xml.namespace.QName("", "viewCount"));
507 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
508 elemField.setNillable(false);
509 typeDesc.addFieldDesc(elemField);
510 }
511
512
515 public static org.apache.axis.description.TypeDesc getTypeDesc() {
516 return typeDesc;
517 }
518
519
522 public static org.apache.axis.encoding.Serializer getSerializer(
523 java.lang.String mechType,
524 java.lang.Class _javaType,
525 javax.xml.namespace.QName _xmlType) {
526 return
527 new org.apache.axis.encoding.ser.BeanSerializer(
528 _javaType, _xmlType, typeDesc);
529 }
530
531
534 public static org.apache.axis.encoding.Deserializer getDeserializer(
535 java.lang.String mechType,
536 java.lang.Class _javaType,
537 javax.xml.namespace.QName _xmlType) {
538 return
539 new org.apache.axis.encoding.ser.BeanDeserializer(
540 _javaType, _xmlType, typeDesc);
541 }
542
543 }
544