1   /**
2    * PollsQuestionSoap.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.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      public PollsQuestionSoap() {
36      }
37  
38      public PollsQuestionSoap(
39             long companyId,
40             java.util.Calendar createDate,
41             java.lang.String description,
42             java.util.Calendar expirationDate,
43             long groupId,
44             java.util.Calendar lastVoteDate,
45             java.util.Calendar modifiedDate,
46             long primaryKey,
47             long questionId,
48             java.lang.String title,
49             long userId,
50             java.lang.String userName) {
51             this.companyId = companyId;
52             this.createDate = createDate;
53             this.description = description;
54             this.expirationDate = expirationDate;
55             this.groupId = groupId;
56             this.lastVoteDate = lastVoteDate;
57             this.modifiedDate = modifiedDate;
58             this.primaryKey = primaryKey;
59             this.questionId = questionId;
60             this.title = title;
61             this.userId = userId;
62             this.userName = userName;
63      }
64  
65  
66      /**
67       * Gets the companyId value for this PollsQuestionSoap.
68       * 
69       * @return companyId
70       */
71      public long getCompanyId() {
72          return companyId;
73      }
74  
75  
76      /**
77       * Sets the companyId value for this PollsQuestionSoap.
78       * 
79       * @param companyId
80       */
81      public void setCompanyId(long companyId) {
82          this.companyId = companyId;
83      }
84  
85  
86      /**
87       * Gets the createDate value for this PollsQuestionSoap.
88       * 
89       * @return createDate
90       */
91      public java.util.Calendar getCreateDate() {
92          return createDate;
93      }
94  
95  
96      /**
97       * Sets the createDate value for this PollsQuestionSoap.
98       * 
99       * @param createDate
100      */
101     public void setCreateDate(java.util.Calendar createDate) {
102         this.createDate = createDate;
103     }
104 
105 
106     /**
107      * Gets the description value for this PollsQuestionSoap.
108      * 
109      * @return description
110      */
111     public java.lang.String getDescription() {
112         return description;
113     }
114 
115 
116     /**
117      * Sets the description value for this PollsQuestionSoap.
118      * 
119      * @param description
120      */
121     public void setDescription(java.lang.String description) {
122         this.description = description;
123     }
124 
125 
126     /**
127      * Gets the expirationDate value for this PollsQuestionSoap.
128      * 
129      * @return expirationDate
130      */
131     public java.util.Calendar getExpirationDate() {
132         return expirationDate;
133     }
134 
135 
136     /**
137      * Sets the expirationDate value for this PollsQuestionSoap.
138      * 
139      * @param expirationDate
140      */
141     public void setExpirationDate(java.util.Calendar expirationDate) {
142         this.expirationDate = expirationDate;
143     }
144 
145 
146     /**
147      * Gets the groupId value for this PollsQuestionSoap.
148      * 
149      * @return groupId
150      */
151     public long getGroupId() {
152         return groupId;
153     }
154 
155 
156     /**
157      * Sets the groupId value for this PollsQuestionSoap.
158      * 
159      * @param groupId
160      */
161     public void setGroupId(long groupId) {
162         this.groupId = groupId;
163     }
164 
165 
166     /**
167      * Gets the lastVoteDate value for this PollsQuestionSoap.
168      * 
169      * @return lastVoteDate
170      */
171     public java.util.Calendar getLastVoteDate() {
172         return lastVoteDate;
173     }
174 
175 
176     /**
177      * Sets the lastVoteDate value for this PollsQuestionSoap.
178      * 
179      * @param lastVoteDate
180      */
181     public void setLastVoteDate(java.util.Calendar lastVoteDate) {
182         this.lastVoteDate = lastVoteDate;
183     }
184 
185 
186     /**
187      * Gets the modifiedDate value for this PollsQuestionSoap.
188      * 
189      * @return modifiedDate
190      */
191     public java.util.Calendar getModifiedDate() {
192         return modifiedDate;
193     }
194 
195 
196     /**
197      * Sets the modifiedDate value for this PollsQuestionSoap.
198      * 
199      * @param modifiedDate
200      */
201     public void setModifiedDate(java.util.Calendar modifiedDate) {
202         this.modifiedDate = modifiedDate;
203     }
204 
205 
206     /**
207      * Gets the primaryKey value for this PollsQuestionSoap.
208      * 
209      * @return primaryKey
210      */
211     public long getPrimaryKey() {
212         return primaryKey;
213     }
214 
215 
216     /**
217      * Sets the primaryKey value for this PollsQuestionSoap.
218      * 
219      * @param primaryKey
220      */
221     public void setPrimaryKey(long primaryKey) {
222         this.primaryKey = primaryKey;
223     }
224 
225 
226     /**
227      * Gets the questionId value for this PollsQuestionSoap.
228      * 
229      * @return questionId
230      */
231     public long getQuestionId() {
232         return questionId;
233     }
234 
235 
236     /**
237      * Sets the questionId value for this PollsQuestionSoap.
238      * 
239      * @param questionId
240      */
241     public void setQuestionId(long questionId) {
242         this.questionId = questionId;
243     }
244 
245 
246     /**
247      * Gets the title value for this PollsQuestionSoap.
248      * 
249      * @return title
250      */
251     public java.lang.String getTitle() {
252         return title;
253     }
254 
255 
256     /**
257      * Sets the title value for this PollsQuestionSoap.
258      * 
259      * @param title
260      */
261     public void setTitle(java.lang.String title) {
262         this.title = title;
263     }
264 
265 
266     /**
267      * Gets the userId value for this PollsQuestionSoap.
268      * 
269      * @return userId
270      */
271     public long getUserId() {
272         return userId;
273     }
274 
275 
276     /**
277      * Sets the userId value for this PollsQuestionSoap.
278      * 
279      * @param userId
280      */
281     public void setUserId(long userId) {
282         this.userId = userId;
283     }
284 
285 
286     /**
287      * Gets the userName value for this PollsQuestionSoap.
288      * 
289      * @return userName
290      */
291     public java.lang.String getUserName() {
292         return userName;
293     }
294 
295 
296     /**
297      * Sets the userName value for this PollsQuestionSoap.
298      * 
299      * @param userName
300      */
301     public void setUserName(java.lang.String userName) {
302         this.userName = userName;
303     }
304 
305     private java.lang.Object __equalsCalc = null;
306     public synchronized boolean equals(java.lang.Object obj) {
307         if (!(obj instanceof PollsQuestionSoap)) return false;
308         PollsQuestionSoap other = (PollsQuestionSoap) obj;
309         if (obj == null) return false;
310         if (this == obj) return true;
311         if (__equalsCalc != null) {
312             return (__equalsCalc == obj);
313         }
314         __equalsCalc = obj;
315         boolean _equals;
316         _equals = true && 
317             this.companyId == other.getCompanyId() &&
318             ((this.createDate==null && other.getCreateDate()==null) || 
319              (this.createDate!=null &&
320               this.createDate.equals(other.getCreateDate()))) &&
321             ((this.description==null && other.getDescription()==null) || 
322              (this.description!=null &&
323               this.description.equals(other.getDescription()))) &&
324             ((this.expirationDate==null && other.getExpirationDate()==null) || 
325              (this.expirationDate!=null &&
326               this.expirationDate.equals(other.getExpirationDate()))) &&
327             this.groupId == other.getGroupId() &&
328             ((this.lastVoteDate==null && other.getLastVoteDate()==null) || 
329              (this.lastVoteDate!=null &&
330               this.lastVoteDate.equals(other.getLastVoteDate()))) &&
331             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
332              (this.modifiedDate!=null &&
333               this.modifiedDate.equals(other.getModifiedDate()))) &&
334             this.primaryKey == other.getPrimaryKey() &&
335             this.questionId == other.getQuestionId() &&
336             ((this.title==null && other.getTitle()==null) || 
337              (this.title!=null &&
338               this.title.equals(other.getTitle()))) &&
339             this.userId == other.getUserId() &&
340             ((this.userName==null && other.getUserName()==null) || 
341              (this.userName!=null &&
342               this.userName.equals(other.getUserName())));
343         __equalsCalc = null;
344         return _equals;
345     }
346 
347     private boolean __hashCodeCalc = false;
348     public synchronized int hashCode() {
349         if (__hashCodeCalc) {
350             return 0;
351         }
352         __hashCodeCalc = true;
353         int _hashCode = 1;
354         _hashCode += new Long(getCompanyId()).hashCode();
355         if (getCreateDate() != null) {
356             _hashCode += getCreateDate().hashCode();
357         }
358         if (getDescription() != null) {
359             _hashCode += getDescription().hashCode();
360         }
361         if (getExpirationDate() != null) {
362             _hashCode += getExpirationDate().hashCode();
363         }
364         _hashCode += new Long(getGroupId()).hashCode();
365         if (getLastVoteDate() != null) {
366             _hashCode += getLastVoteDate().hashCode();
367         }
368         if (getModifiedDate() != null) {
369             _hashCode += getModifiedDate().hashCode();
370         }
371         _hashCode += new Long(getPrimaryKey()).hashCode();
372         _hashCode += new Long(getQuestionId()).hashCode();
373         if (getTitle() != null) {
374             _hashCode += getTitle().hashCode();
375         }
376         _hashCode += new Long(getUserId()).hashCode();
377         if (getUserName() != null) {
378             _hashCode += getUserName().hashCode();
379         }
380         __hashCodeCalc = false;
381         return _hashCode;
382     }
383 
384     // Type metadata
385     private static org.apache.axis.description.TypeDesc typeDesc =
386         new org.apache.axis.description.TypeDesc(PollsQuestionSoap.class, true);
387 
388     static {
389         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsQuestionSoap"));
390         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
391         elemField.setFieldName("companyId");
392         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
393         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
394         elemField.setNillable(false);
395         typeDesc.addFieldDesc(elemField);
396         elemField = new org.apache.axis.description.ElementDesc();
397         elemField.setFieldName("createDate");
398         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
399         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
400         elemField.setNillable(true);
401         typeDesc.addFieldDesc(elemField);
402         elemField = new org.apache.axis.description.ElementDesc();
403         elemField.setFieldName("description");
404         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
405         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
406         elemField.setNillable(true);
407         typeDesc.addFieldDesc(elemField);
408         elemField = new org.apache.axis.description.ElementDesc();
409         elemField.setFieldName("expirationDate");
410         elemField.setXmlName(new javax.xml.namespace.QName("", "expirationDate"));
411         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
412         elemField.setNillable(true);
413         typeDesc.addFieldDesc(elemField);
414         elemField = new org.apache.axis.description.ElementDesc();
415         elemField.setFieldName("groupId");
416         elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
417         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
418         elemField.setNillable(false);
419         typeDesc.addFieldDesc(elemField);
420         elemField = new org.apache.axis.description.ElementDesc();
421         elemField.setFieldName("lastVoteDate");
422         elemField.setXmlName(new javax.xml.namespace.QName("", "lastVoteDate"));
423         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
424         elemField.setNillable(true);
425         typeDesc.addFieldDesc(elemField);
426         elemField = new org.apache.axis.description.ElementDesc();
427         elemField.setFieldName("modifiedDate");
428         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
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("primaryKey");
434         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
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("questionId");
440         elemField.setXmlName(new javax.xml.namespace.QName("", "questionId"));
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("title");
446         elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
447         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
448         elemField.setNillable(true);
449         typeDesc.addFieldDesc(elemField);
450         elemField = new org.apache.axis.description.ElementDesc();
451         elemField.setFieldName("userId");
452         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
453         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
454         elemField.setNillable(false);
455         typeDesc.addFieldDesc(elemField);
456         elemField = new org.apache.axis.description.ElementDesc();
457         elemField.setFieldName("userName");
458         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
459         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
460         elemField.setNillable(true);
461         typeDesc.addFieldDesc(elemField);
462     }
463 
464     /**
465      * Return type metadata object
466      */
467     public static org.apache.axis.description.TypeDesc getTypeDesc() {
468         return typeDesc;
469     }
470 
471     /**
472      * Get Custom Serializer
473      */
474     public static org.apache.axis.encoding.Serializer getSerializer(
475            java.lang.String mechType, 
476            java.lang.Class _javaType,  
477            javax.xml.namespace.QName _xmlType) {
478         return 
479           new  org.apache.axis.encoding.ser.BeanSerializer(
480             _javaType, _xmlType, typeDesc);
481     }
482 
483     /**
484      * Get Custom Deserializer
485      */
486     public static org.apache.axis.encoding.Deserializer getDeserializer(
487            java.lang.String mechType, 
488            java.lang.Class _javaType,  
489            javax.xml.namespace.QName _xmlType) {
490         return 
491           new  org.apache.axis.encoding.ser.BeanDeserializer(
492             _javaType, _xmlType, typeDesc);
493     }
494 
495 }
496