1   /**
2    * MBThreadSoap.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.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      /**
75       * Gets the categoryId value for this MBThreadSoap.
76       * 
77       * @return categoryId
78       */
79      public long getCategoryId() {
80          return categoryId;
81      }
82  
83  
84      /**
85       * Sets the categoryId value for this MBThreadSoap.
86       * 
87       * @param categoryId
88       */
89      public void setCategoryId(long categoryId) {
90          this.categoryId = categoryId;
91      }
92  
93  
94      /**
95       * Gets the groupId value for this MBThreadSoap.
96       * 
97       * @return groupId
98       */
99      public long getGroupId() {
100         return groupId;
101     }
102 
103 
104     /**
105      * Sets the groupId value for this MBThreadSoap.
106      * 
107      * @param groupId
108      */
109     public void setGroupId(long groupId) {
110         this.groupId = groupId;
111     }
112 
113 
114     /**
115      * Gets the lastPostByUserId value for this MBThreadSoap.
116      * 
117      * @return lastPostByUserId
118      */
119     public long getLastPostByUserId() {
120         return lastPostByUserId;
121     }
122 
123 
124     /**
125      * Sets the lastPostByUserId value for this MBThreadSoap.
126      * 
127      * @param lastPostByUserId
128      */
129     public void setLastPostByUserId(long lastPostByUserId) {
130         this.lastPostByUserId = lastPostByUserId;
131     }
132 
133 
134     /**
135      * Gets the lastPostDate value for this MBThreadSoap.
136      * 
137      * @return lastPostDate
138      */
139     public java.util.Calendar getLastPostDate() {
140         return lastPostDate;
141     }
142 
143 
144     /**
145      * Sets the lastPostDate value for this MBThreadSoap.
146      * 
147      * @param lastPostDate
148      */
149     public void setLastPostDate(java.util.Calendar lastPostDate) {
150         this.lastPostDate = lastPostDate;
151     }
152 
153 
154     /**
155      * Gets the messageCount value for this MBThreadSoap.
156      * 
157      * @return messageCount
158      */
159     public int getMessageCount() {
160         return messageCount;
161     }
162 
163 
164     /**
165      * Sets the messageCount value for this MBThreadSoap.
166      * 
167      * @param messageCount
168      */
169     public void setMessageCount(int messageCount) {
170         this.messageCount = messageCount;
171     }
172 
173 
174     /**
175      * Gets the primaryKey value for this MBThreadSoap.
176      * 
177      * @return primaryKey
178      */
179     public long getPrimaryKey() {
180         return primaryKey;
181     }
182 
183 
184     /**
185      * Sets the primaryKey value for this MBThreadSoap.
186      * 
187      * @param primaryKey
188      */
189     public void setPrimaryKey(long primaryKey) {
190         this.primaryKey = primaryKey;
191     }
192 
193 
194     /**
195      * Gets the priority value for this MBThreadSoap.
196      * 
197      * @return priority
198      */
199     public double getPriority() {
200         return priority;
201     }
202 
203 
204     /**
205      * Sets the priority value for this MBThreadSoap.
206      * 
207      * @param priority
208      */
209     public void setPriority(double priority) {
210         this.priority = priority;
211     }
212 
213 
214     /**
215      * Gets the rootMessageId value for this MBThreadSoap.
216      * 
217      * @return rootMessageId
218      */
219     public long getRootMessageId() {
220         return rootMessageId;
221     }
222 
223 
224     /**
225      * Sets the rootMessageId value for this MBThreadSoap.
226      * 
227      * @param rootMessageId
228      */
229     public void setRootMessageId(long rootMessageId) {
230         this.rootMessageId = rootMessageId;
231     }
232 
233 
234     /**
235      * Gets the status value for this MBThreadSoap.
236      * 
237      * @return status
238      */
239     public int getStatus() {
240         return status;
241     }
242 
243 
244     /**
245      * Sets the status value for this MBThreadSoap.
246      * 
247      * @param status
248      */
249     public void setStatus(int status) {
250         this.status = status;
251     }
252 
253 
254     /**
255      * Gets the statusByUserId value for this MBThreadSoap.
256      * 
257      * @return statusByUserId
258      */
259     public long getStatusByUserId() {
260         return statusByUserId;
261     }
262 
263 
264     /**
265      * Sets the statusByUserId value for this MBThreadSoap.
266      * 
267      * @param statusByUserId
268      */
269     public void setStatusByUserId(long statusByUserId) {
270         this.statusByUserId = statusByUserId;
271     }
272 
273 
274     /**
275      * Gets the statusByUserName value for this MBThreadSoap.
276      * 
277      * @return statusByUserName
278      */
279     public java.lang.String getStatusByUserName() {
280         return statusByUserName;
281     }
282 
283 
284     /**
285      * Sets the statusByUserName value for this MBThreadSoap.
286      * 
287      * @param statusByUserName
288      */
289     public void setStatusByUserName(java.lang.String statusByUserName) {
290         this.statusByUserName = statusByUserName;
291     }
292 
293 
294     /**
295      * Gets the statusDate value for this MBThreadSoap.
296      * 
297      * @return statusDate
298      */
299     public java.util.Calendar getStatusDate() {
300         return statusDate;
301     }
302 
303 
304     /**
305      * Sets the statusDate value for this MBThreadSoap.
306      * 
307      * @param statusDate
308      */
309     public void setStatusDate(java.util.Calendar statusDate) {
310         this.statusDate = statusDate;
311     }
312 
313 
314     /**
315      * Gets the threadId value for this MBThreadSoap.
316      * 
317      * @return threadId
318      */
319     public long getThreadId() {
320         return threadId;
321     }
322 
323 
324     /**
325      * Sets the threadId value for this MBThreadSoap.
326      * 
327      * @param threadId
328      */
329     public void setThreadId(long threadId) {
330         this.threadId = threadId;
331     }
332 
333 
334     /**
335      * Gets the viewCount value for this MBThreadSoap.
336      * 
337      * @return viewCount
338      */
339     public int getViewCount() {
340         return viewCount;
341     }
342 
343 
344     /**
345      * Sets the viewCount value for this MBThreadSoap.
346      * 
347      * @param viewCount
348      */
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     // Type metadata
421     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     /**
513      * Return type metadata object
514      */
515     public static org.apache.axis.description.TypeDesc getTypeDesc() {
516         return typeDesc;
517     }
518 
519     /**
520      * Get Custom Serializer
521      */
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     /**
532      * Get Custom Deserializer
533      */
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