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 long threadId;
28
29 private int viewCount;
30
31 public MBThreadSoap() {
32 }
33
34 public MBThreadSoap(
35 long categoryId,
36 long groupId,
37 long lastPostByUserId,
38 java.util.Calendar lastPostDate,
39 int messageCount,
40 long primaryKey,
41 double priority,
42 long rootMessageId,
43 long threadId,
44 int viewCount) {
45 this.categoryId = categoryId;
46 this.groupId = groupId;
47 this.lastPostByUserId = lastPostByUserId;
48 this.lastPostDate = lastPostDate;
49 this.messageCount = messageCount;
50 this.primaryKey = primaryKey;
51 this.priority = priority;
52 this.rootMessageId = rootMessageId;
53 this.threadId = threadId;
54 this.viewCount = viewCount;
55 }
56
57
58
63 public long getCategoryId() {
64 return categoryId;
65 }
66
67
68
73 public void setCategoryId(long categoryId) {
74 this.categoryId = categoryId;
75 }
76
77
78
83 public long getGroupId() {
84 return groupId;
85 }
86
87
88
93 public void setGroupId(long groupId) {
94 this.groupId = groupId;
95 }
96
97
98
103 public long getLastPostByUserId() {
104 return lastPostByUserId;
105 }
106
107
108
113 public void setLastPostByUserId(long lastPostByUserId) {
114 this.lastPostByUserId = lastPostByUserId;
115 }
116
117
118
123 public java.util.Calendar getLastPostDate() {
124 return lastPostDate;
125 }
126
127
128
133 public void setLastPostDate(java.util.Calendar lastPostDate) {
134 this.lastPostDate = lastPostDate;
135 }
136
137
138
143 public int getMessageCount() {
144 return messageCount;
145 }
146
147
148
153 public void setMessageCount(int messageCount) {
154 this.messageCount = messageCount;
155 }
156
157
158
163 public long getPrimaryKey() {
164 return primaryKey;
165 }
166
167
168
173 public void setPrimaryKey(long primaryKey) {
174 this.primaryKey = primaryKey;
175 }
176
177
178
183 public double getPriority() {
184 return priority;
185 }
186
187
188
193 public void setPriority(double priority) {
194 this.priority = priority;
195 }
196
197
198
203 public long getRootMessageId() {
204 return rootMessageId;
205 }
206
207
208
213 public void setRootMessageId(long rootMessageId) {
214 this.rootMessageId = rootMessageId;
215 }
216
217
218
223 public long getThreadId() {
224 return threadId;
225 }
226
227
228
233 public void setThreadId(long threadId) {
234 this.threadId = threadId;
235 }
236
237
238
243 public int getViewCount() {
244 return viewCount;
245 }
246
247
248
253 public void setViewCount(int viewCount) {
254 this.viewCount = viewCount;
255 }
256
257 private java.lang.Object __equalsCalc = null;
258 public synchronized boolean equals(java.lang.Object obj) {
259 if (!(obj instanceof MBThreadSoap)) return false;
260 MBThreadSoap other = (MBThreadSoap) obj;
261 if (obj == null) return false;
262 if (this == obj) return true;
263 if (__equalsCalc != null) {
264 return (__equalsCalc == obj);
265 }
266 __equalsCalc = obj;
267 boolean _equals;
268 _equals = true &&
269 this.categoryId == other.getCategoryId() &&
270 this.groupId == other.getGroupId() &&
271 this.lastPostByUserId == other.getLastPostByUserId() &&
272 ((this.lastPostDate==null && other.getLastPostDate()==null) ||
273 (this.lastPostDate!=null &&
274 this.lastPostDate.equals(other.getLastPostDate()))) &&
275 this.messageCount == other.getMessageCount() &&
276 this.primaryKey == other.getPrimaryKey() &&
277 this.priority == other.getPriority() &&
278 this.rootMessageId == other.getRootMessageId() &&
279 this.threadId == other.getThreadId() &&
280 this.viewCount == other.getViewCount();
281 __equalsCalc = null;
282 return _equals;
283 }
284
285 private boolean __hashCodeCalc = false;
286 public synchronized int hashCode() {
287 if (__hashCodeCalc) {
288 return 0;
289 }
290 __hashCodeCalc = true;
291 int _hashCode = 1;
292 _hashCode += new Long(getCategoryId()).hashCode();
293 _hashCode += new Long(getGroupId()).hashCode();
294 _hashCode += new Long(getLastPostByUserId()).hashCode();
295 if (getLastPostDate() != null) {
296 _hashCode += getLastPostDate().hashCode();
297 }
298 _hashCode += getMessageCount();
299 _hashCode += new Long(getPrimaryKey()).hashCode();
300 _hashCode += new Double(getPriority()).hashCode();
301 _hashCode += new Long(getRootMessageId()).hashCode();
302 _hashCode += new Long(getThreadId()).hashCode();
303 _hashCode += getViewCount();
304 __hashCodeCalc = false;
305 return _hashCode;
306 }
307
308 private static org.apache.axis.description.TypeDesc typeDesc =
310 new org.apache.axis.description.TypeDesc(MBThreadSoap.class, true);
311
312 static {
313 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.messageboards.portlet.liferay.com", "MBThreadSoap"));
314 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
315 elemField.setFieldName("categoryId");
316 elemField.setXmlName(new javax.xml.namespace.QName("", "categoryId"));
317 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
318 elemField.setNillable(false);
319 typeDesc.addFieldDesc(elemField);
320 elemField = new org.apache.axis.description.ElementDesc();
321 elemField.setFieldName("groupId");
322 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
323 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
324 elemField.setNillable(false);
325 typeDesc.addFieldDesc(elemField);
326 elemField = new org.apache.axis.description.ElementDesc();
327 elemField.setFieldName("lastPostByUserId");
328 elemField.setXmlName(new javax.xml.namespace.QName("", "lastPostByUserId"));
329 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
330 elemField.setNillable(false);
331 typeDesc.addFieldDesc(elemField);
332 elemField = new org.apache.axis.description.ElementDesc();
333 elemField.setFieldName("lastPostDate");
334 elemField.setXmlName(new javax.xml.namespace.QName("", "lastPostDate"));
335 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
336 elemField.setNillable(true);
337 typeDesc.addFieldDesc(elemField);
338 elemField = new org.apache.axis.description.ElementDesc();
339 elemField.setFieldName("messageCount");
340 elemField.setXmlName(new javax.xml.namespace.QName("", "messageCount"));
341 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
342 elemField.setNillable(false);
343 typeDesc.addFieldDesc(elemField);
344 elemField = new org.apache.axis.description.ElementDesc();
345 elemField.setFieldName("primaryKey");
346 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
347 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
348 elemField.setNillable(false);
349 typeDesc.addFieldDesc(elemField);
350 elemField = new org.apache.axis.description.ElementDesc();
351 elemField.setFieldName("priority");
352 elemField.setXmlName(new javax.xml.namespace.QName("", "priority"));
353 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
354 elemField.setNillable(false);
355 typeDesc.addFieldDesc(elemField);
356 elemField = new org.apache.axis.description.ElementDesc();
357 elemField.setFieldName("rootMessageId");
358 elemField.setXmlName(new javax.xml.namespace.QName("", "rootMessageId"));
359 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
360 elemField.setNillable(false);
361 typeDesc.addFieldDesc(elemField);
362 elemField = new org.apache.axis.description.ElementDesc();
363 elemField.setFieldName("threadId");
364 elemField.setXmlName(new javax.xml.namespace.QName("", "threadId"));
365 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
366 elemField.setNillable(false);
367 typeDesc.addFieldDesc(elemField);
368 elemField = new org.apache.axis.description.ElementDesc();
369 elemField.setFieldName("viewCount");
370 elemField.setXmlName(new javax.xml.namespace.QName("", "viewCount"));
371 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
372 elemField.setNillable(false);
373 typeDesc.addFieldDesc(elemField);
374 }
375
376
379 public static org.apache.axis.description.TypeDesc getTypeDesc() {
380 return typeDesc;
381 }
382
383
386 public static org.apache.axis.encoding.Serializer getSerializer(
387 java.lang.String mechType,
388 java.lang.Class _javaType,
389 javax.xml.namespace.QName _xmlType) {
390 return
391 new org.apache.axis.encoding.ser.BeanSerializer(
392 _javaType, _xmlType, typeDesc);
393 }
394
395
398 public static org.apache.axis.encoding.Deserializer getDeserializer(
399 java.lang.String mechType,
400 java.lang.Class _javaType,
401 javax.xml.namespace.QName _xmlType) {
402 return
403 new org.apache.axis.encoding.ser.BeanDeserializer(
404 _javaType, _xmlType, typeDesc);
405 }
406
407 }
408