1
7
8 package com.liferay.client.soap.portlet.polls.model;
9
10 public class PollsQuestionSoap implements java.io.Serializable {
11 private long companyId;
12
13 private java.util.Calendar createDate;
14
15 private java.lang.String description;
16
17 private java.util.Calendar expirationDate;
18
19 private long groupId;
20
21 private java.util.Calendar lastVoteDate;
22
23 private java.util.Calendar modifiedDate;
24
25 private long primaryKey;
26
27 private long questionId;
28
29 private java.lang.String title;
30
31 private long userId;
32
33 private java.lang.String userName;
34
35 private java.lang.String uuid;
36
37 public PollsQuestionSoap() {
38 }
39
40 public PollsQuestionSoap(
41 long companyId,
42 java.util.Calendar createDate,
43 java.lang.String description,
44 java.util.Calendar expirationDate,
45 long groupId,
46 java.util.Calendar lastVoteDate,
47 java.util.Calendar modifiedDate,
48 long primaryKey,
49 long questionId,
50 java.lang.String title,
51 long userId,
52 java.lang.String userName,
53 java.lang.String uuid) {
54 this.companyId = companyId;
55 this.createDate = createDate;
56 this.description = description;
57 this.expirationDate = expirationDate;
58 this.groupId = groupId;
59 this.lastVoteDate = lastVoteDate;
60 this.modifiedDate = modifiedDate;
61 this.primaryKey = primaryKey;
62 this.questionId = questionId;
63 this.title = title;
64 this.userId = userId;
65 this.userName = userName;
66 this.uuid = uuid;
67 }
68
69
70
75 public long getCompanyId() {
76 return companyId;
77 }
78
79
80
85 public void setCompanyId(long companyId) {
86 this.companyId = companyId;
87 }
88
89
90
95 public java.util.Calendar getCreateDate() {
96 return createDate;
97 }
98
99
100
105 public void setCreateDate(java.util.Calendar createDate) {
106 this.createDate = createDate;
107 }
108
109
110
115 public java.lang.String getDescription() {
116 return description;
117 }
118
119
120
125 public void setDescription(java.lang.String description) {
126 this.description = description;
127 }
128
129
130
135 public java.util.Calendar getExpirationDate() {
136 return expirationDate;
137 }
138
139
140
145 public void setExpirationDate(java.util.Calendar expirationDate) {
146 this.expirationDate = expirationDate;
147 }
148
149
150
155 public long getGroupId() {
156 return groupId;
157 }
158
159
160
165 public void setGroupId(long groupId) {
166 this.groupId = groupId;
167 }
168
169
170
175 public java.util.Calendar getLastVoteDate() {
176 return lastVoteDate;
177 }
178
179
180
185 public void setLastVoteDate(java.util.Calendar lastVoteDate) {
186 this.lastVoteDate = lastVoteDate;
187 }
188
189
190
195 public java.util.Calendar getModifiedDate() {
196 return modifiedDate;
197 }
198
199
200
205 public void setModifiedDate(java.util.Calendar modifiedDate) {
206 this.modifiedDate = modifiedDate;
207 }
208
209
210
215 public long getPrimaryKey() {
216 return primaryKey;
217 }
218
219
220
225 public void setPrimaryKey(long primaryKey) {
226 this.primaryKey = primaryKey;
227 }
228
229
230
235 public long getQuestionId() {
236 return questionId;
237 }
238
239
240
245 public void setQuestionId(long questionId) {
246 this.questionId = questionId;
247 }
248
249
250
255 public java.lang.String getTitle() {
256 return title;
257 }
258
259
260
265 public void setTitle(java.lang.String title) {
266 this.title = title;
267 }
268
269
270
275 public long getUserId() {
276 return userId;
277 }
278
279
280
285 public void setUserId(long userId) {
286 this.userId = userId;
287 }
288
289
290
295 public java.lang.String getUserName() {
296 return userName;
297 }
298
299
300
305 public void setUserName(java.lang.String userName) {
306 this.userName = userName;
307 }
308
309
310
315 public java.lang.String getUuid() {
316 return uuid;
317 }
318
319
320
325 public void setUuid(java.lang.String uuid) {
326 this.uuid = uuid;
327 }
328
329 private java.lang.Object __equalsCalc = null;
330 public synchronized boolean equals(java.lang.Object obj) {
331 if (!(obj instanceof PollsQuestionSoap)) return false;
332 PollsQuestionSoap other = (PollsQuestionSoap) obj;
333 if (obj == null) return false;
334 if (this == obj) return true;
335 if (__equalsCalc != null) {
336 return (__equalsCalc == obj);
337 }
338 __equalsCalc = obj;
339 boolean _equals;
340 _equals = true &&
341 this.companyId == other.getCompanyId() &&
342 ((this.createDate==null && other.getCreateDate()==null) ||
343 (this.createDate!=null &&
344 this.createDate.equals(other.getCreateDate()))) &&
345 ((this.description==null && other.getDescription()==null) ||
346 (this.description!=null &&
347 this.description.equals(other.getDescription()))) &&
348 ((this.expirationDate==null && other.getExpirationDate()==null) ||
349 (this.expirationDate!=null &&
350 this.expirationDate.equals(other.getExpirationDate()))) &&
351 this.groupId == other.getGroupId() &&
352 ((this.lastVoteDate==null && other.getLastVoteDate()==null) ||
353 (this.lastVoteDate!=null &&
354 this.lastVoteDate.equals(other.getLastVoteDate()))) &&
355 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
356 (this.modifiedDate!=null &&
357 this.modifiedDate.equals(other.getModifiedDate()))) &&
358 this.primaryKey == other.getPrimaryKey() &&
359 this.questionId == other.getQuestionId() &&
360 ((this.title==null && other.getTitle()==null) ||
361 (this.title!=null &&
362 this.title.equals(other.getTitle()))) &&
363 this.userId == other.getUserId() &&
364 ((this.userName==null && other.getUserName()==null) ||
365 (this.userName!=null &&
366 this.userName.equals(other.getUserName()))) &&
367 ((this.uuid==null && other.getUuid()==null) ||
368 (this.uuid!=null &&
369 this.uuid.equals(other.getUuid())));
370 __equalsCalc = null;
371 return _equals;
372 }
373
374 private boolean __hashCodeCalc = false;
375 public synchronized int hashCode() {
376 if (__hashCodeCalc) {
377 return 0;
378 }
379 __hashCodeCalc = true;
380 int _hashCode = 1;
381 _hashCode += new Long(getCompanyId()).hashCode();
382 if (getCreateDate() != null) {
383 _hashCode += getCreateDate().hashCode();
384 }
385 if (getDescription() != null) {
386 _hashCode += getDescription().hashCode();
387 }
388 if (getExpirationDate() != null) {
389 _hashCode += getExpirationDate().hashCode();
390 }
391 _hashCode += new Long(getGroupId()).hashCode();
392 if (getLastVoteDate() != null) {
393 _hashCode += getLastVoteDate().hashCode();
394 }
395 if (getModifiedDate() != null) {
396 _hashCode += getModifiedDate().hashCode();
397 }
398 _hashCode += new Long(getPrimaryKey()).hashCode();
399 _hashCode += new Long(getQuestionId()).hashCode();
400 if (getTitle() != null) {
401 _hashCode += getTitle().hashCode();
402 }
403 _hashCode += new Long(getUserId()).hashCode();
404 if (getUserName() != null) {
405 _hashCode += getUserName().hashCode();
406 }
407 if (getUuid() != null) {
408 _hashCode += getUuid().hashCode();
409 }
410 __hashCodeCalc = false;
411 return _hashCode;
412 }
413
414 private static org.apache.axis.description.TypeDesc typeDesc =
416 new org.apache.axis.description.TypeDesc(PollsQuestionSoap.class, true);
417
418 static {
419 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsQuestionSoap"));
420 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
421 elemField.setFieldName("companyId");
422 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
423 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
424 elemField.setNillable(false);
425 typeDesc.addFieldDesc(elemField);
426 elemField = new org.apache.axis.description.ElementDesc();
427 elemField.setFieldName("createDate");
428 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
429 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
430 elemField.setNillable(true);
431 typeDesc.addFieldDesc(elemField);
432 elemField = new org.apache.axis.description.ElementDesc();
433 elemField.setFieldName("description");
434 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
435 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
436 elemField.setNillable(true);
437 typeDesc.addFieldDesc(elemField);
438 elemField = new org.apache.axis.description.ElementDesc();
439 elemField.setFieldName("expirationDate");
440 elemField.setXmlName(new javax.xml.namespace.QName("", "expirationDate"));
441 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
442 elemField.setNillable(true);
443 typeDesc.addFieldDesc(elemField);
444 elemField = new org.apache.axis.description.ElementDesc();
445 elemField.setFieldName("groupId");
446 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
447 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
448 elemField.setNillable(false);
449 typeDesc.addFieldDesc(elemField);
450 elemField = new org.apache.axis.description.ElementDesc();
451 elemField.setFieldName("lastVoteDate");
452 elemField.setXmlName(new javax.xml.namespace.QName("", "lastVoteDate"));
453 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
454 elemField.setNillable(true);
455 typeDesc.addFieldDesc(elemField);
456 elemField = new org.apache.axis.description.ElementDesc();
457 elemField.setFieldName("modifiedDate");
458 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
459 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
460 elemField.setNillable(true);
461 typeDesc.addFieldDesc(elemField);
462 elemField = new org.apache.axis.description.ElementDesc();
463 elemField.setFieldName("primaryKey");
464 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
465 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
466 elemField.setNillable(false);
467 typeDesc.addFieldDesc(elemField);
468 elemField = new org.apache.axis.description.ElementDesc();
469 elemField.setFieldName("questionId");
470 elemField.setXmlName(new javax.xml.namespace.QName("", "questionId"));
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("title");
476 elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
477 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
478 elemField.setNillable(true);
479 typeDesc.addFieldDesc(elemField);
480 elemField = new org.apache.axis.description.ElementDesc();
481 elemField.setFieldName("userId");
482 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
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("userName");
488 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
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("uuid");
494 elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
495 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
496 elemField.setNillable(true);
497 typeDesc.addFieldDesc(elemField);
498 }
499
500
503 public static org.apache.axis.description.TypeDesc getTypeDesc() {
504 return typeDesc;
505 }
506
507
510 public static org.apache.axis.encoding.Serializer getSerializer(
511 java.lang.String mechType,
512 java.lang.Class _javaType,
513 javax.xml.namespace.QName _xmlType) {
514 return
515 new org.apache.axis.encoding.ser.BeanSerializer(
516 _javaType, _xmlType, typeDesc);
517 }
518
519
522 public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
528 _javaType, _xmlType, typeDesc);
529 }
530
531 }
532