1
7
8 package com.liferay.client.portlet.messageboards.model;
9
10 public class MBThreadSoap implements java.io.Serializable {
11 private long categoryId;
12
13 private long lastPostByUserId;
14
15 private java.util.Calendar lastPostDate;
16
17 private int messageCount;
18
19 private long primaryKey;
20
21 private double priority;
22
23 private long rootMessageId;
24
25 private long threadId;
26
27 private int viewCount;
28
29 public MBThreadSoap() {
30 }
31
32 public MBThreadSoap(
33 long categoryId,
34 long lastPostByUserId,
35 java.util.Calendar lastPostDate,
36 int messageCount,
37 long primaryKey,
38 double priority,
39 long rootMessageId,
40 long threadId,
41 int viewCount) {
42 this.categoryId = categoryId;
43 this.lastPostByUserId = lastPostByUserId;
44 this.lastPostDate = lastPostDate;
45 this.messageCount = messageCount;
46 this.primaryKey = primaryKey;
47 this.priority = priority;
48 this.rootMessageId = rootMessageId;
49 this.threadId = threadId;
50 this.viewCount = viewCount;
51 }
52
53
54
59 public long getCategoryId() {
60 return categoryId;
61 }
62
63
64
69 public void setCategoryId(long categoryId) {
70 this.categoryId = categoryId;
71 }
72
73
74
79 public long getLastPostByUserId() {
80 return lastPostByUserId;
81 }
82
83
84
89 public void setLastPostByUserId(long lastPostByUserId) {
90 this.lastPostByUserId = lastPostByUserId;
91 }
92
93
94
99 public java.util.Calendar getLastPostDate() {
100 return lastPostDate;
101 }
102
103
104
109 public void setLastPostDate(java.util.Calendar lastPostDate) {
110 this.lastPostDate = lastPostDate;
111 }
112
113
114
119 public int getMessageCount() {
120 return messageCount;
121 }
122
123
124
129 public void setMessageCount(int messageCount) {
130 this.messageCount = messageCount;
131 }
132
133
134
139 public long getPrimaryKey() {
140 return primaryKey;
141 }
142
143
144
149 public void setPrimaryKey(long primaryKey) {
150 this.primaryKey = primaryKey;
151 }
152
153
154
159 public double getPriority() {
160 return priority;
161 }
162
163
164
169 public void setPriority(double priority) {
170 this.priority = priority;
171 }
172
173
174
179 public long getRootMessageId() {
180 return rootMessageId;
181 }
182
183
184
189 public void setRootMessageId(long rootMessageId) {
190 this.rootMessageId = rootMessageId;
191 }
192
193
194
199 public long getThreadId() {
200 return threadId;
201 }
202
203
204
209 public void setThreadId(long threadId) {
210 this.threadId = threadId;
211 }
212
213
214
219 public int getViewCount() {
220 return viewCount;
221 }
222
223
224
229 public void setViewCount(int viewCount) {
230 this.viewCount = viewCount;
231 }
232
233 private java.lang.Object __equalsCalc = null;
234 public synchronized boolean equals(java.lang.Object obj) {
235 if (!(obj instanceof MBThreadSoap)) return false;
236 MBThreadSoap other = (MBThreadSoap) obj;
237 if (obj == null) return false;
238 if (this == obj) return true;
239 if (__equalsCalc != null) {
240 return (__equalsCalc == obj);
241 }
242 __equalsCalc = obj;
243 boolean _equals;
244 _equals = true &&
245 this.categoryId == other.getCategoryId() &&
246 this.lastPostByUserId == other.getLastPostByUserId() &&
247 ((this.lastPostDate==null && other.getLastPostDate()==null) ||
248 (this.lastPostDate!=null &&
249 this.lastPostDate.equals(other.getLastPostDate()))) &&
250 this.messageCount == other.getMessageCount() &&
251 this.primaryKey == other.getPrimaryKey() &&
252 this.priority == other.getPriority() &&
253 this.rootMessageId == other.getRootMessageId() &&
254 this.threadId == other.getThreadId() &&
255 this.viewCount == other.getViewCount();
256 __equalsCalc = null;
257 return _equals;
258 }
259
260 private boolean __hashCodeCalc = false;
261 public synchronized int hashCode() {
262 if (__hashCodeCalc) {
263 return 0;
264 }
265 __hashCodeCalc = true;
266 int _hashCode = 1;
267 _hashCode += new Long(getCategoryId()).hashCode();
268 _hashCode += new Long(getLastPostByUserId()).hashCode();
269 if (getLastPostDate() != null) {
270 _hashCode += getLastPostDate().hashCode();
271 }
272 _hashCode += getMessageCount();
273 _hashCode += new Long(getPrimaryKey()).hashCode();
274 _hashCode += new Double(getPriority()).hashCode();
275 _hashCode += new Long(getRootMessageId()).hashCode();
276 _hashCode += new Long(getThreadId()).hashCode();
277 _hashCode += getViewCount();
278 __hashCodeCalc = false;
279 return _hashCode;
280 }
281
282 private static org.apache.axis.description.TypeDesc typeDesc =
284 new org.apache.axis.description.TypeDesc(MBThreadSoap.class, true);
285
286 static {
287 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.messageboards.portlet.liferay.com", "MBThreadSoap"));
288 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
289 elemField.setFieldName("categoryId");
290 elemField.setXmlName(new javax.xml.namespace.QName("", "categoryId"));
291 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
292 elemField.setNillable(false);
293 typeDesc.addFieldDesc(elemField);
294 elemField = new org.apache.axis.description.ElementDesc();
295 elemField.setFieldName("lastPostByUserId");
296 elemField.setXmlName(new javax.xml.namespace.QName("", "lastPostByUserId"));
297 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
298 elemField.setNillable(false);
299 typeDesc.addFieldDesc(elemField);
300 elemField = new org.apache.axis.description.ElementDesc();
301 elemField.setFieldName("lastPostDate");
302 elemField.setXmlName(new javax.xml.namespace.QName("", "lastPostDate"));
303 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
304 elemField.setNillable(true);
305 typeDesc.addFieldDesc(elemField);
306 elemField = new org.apache.axis.description.ElementDesc();
307 elemField.setFieldName("messageCount");
308 elemField.setXmlName(new javax.xml.namespace.QName("", "messageCount"));
309 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
310 elemField.setNillable(false);
311 typeDesc.addFieldDesc(elemField);
312 elemField = new org.apache.axis.description.ElementDesc();
313 elemField.setFieldName("primaryKey");
314 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
315 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
316 elemField.setNillable(false);
317 typeDesc.addFieldDesc(elemField);
318 elemField = new org.apache.axis.description.ElementDesc();
319 elemField.setFieldName("priority");
320 elemField.setXmlName(new javax.xml.namespace.QName("", "priority"));
321 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
322 elemField.setNillable(false);
323 typeDesc.addFieldDesc(elemField);
324 elemField = new org.apache.axis.description.ElementDesc();
325 elemField.setFieldName("rootMessageId");
326 elemField.setXmlName(new javax.xml.namespace.QName("", "rootMessageId"));
327 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
328 elemField.setNillable(false);
329 typeDesc.addFieldDesc(elemField);
330 elemField = new org.apache.axis.description.ElementDesc();
331 elemField.setFieldName("threadId");
332 elemField.setXmlName(new javax.xml.namespace.QName("", "threadId"));
333 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
334 elemField.setNillable(false);
335 typeDesc.addFieldDesc(elemField);
336 elemField = new org.apache.axis.description.ElementDesc();
337 elemField.setFieldName("viewCount");
338 elemField.setXmlName(new javax.xml.namespace.QName("", "viewCount"));
339 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
340 elemField.setNillable(false);
341 typeDesc.addFieldDesc(elemField);
342 }
343
344
347 public static org.apache.axis.description.TypeDesc getTypeDesc() {
348 return typeDesc;
349 }
350
351
354 public static org.apache.axis.encoding.Serializer getSerializer(
355 java.lang.String mechType,
356 java.lang.Class _javaType,
357 javax.xml.namespace.QName _xmlType) {
358 return
359 new org.apache.axis.encoding.ser.BeanSerializer(
360 _javaType, _xmlType, typeDesc);
361 }
362
363
366 public static org.apache.axis.encoding.Deserializer getDeserializer(
367 java.lang.String mechType,
368 java.lang.Class _javaType,
369 javax.xml.namespace.QName _xmlType) {
370 return
371 new org.apache.axis.encoding.ser.BeanDeserializer(
372 _javaType, _xmlType, typeDesc);
373 }
374
375 }
376