1
7
8 package com.liferay.client.soap.portlet.polls.model;
9
10 public class PollsVoteSoap implements java.io.Serializable {
11 private long choiceId;
12
13 private long primaryKey;
14
15 private long questionId;
16
17 private long userId;
18
19 private java.util.Calendar voteDate;
20
21 private long voteId;
22
23 public PollsVoteSoap() {
24 }
25
26 public PollsVoteSoap(
27 long choiceId,
28 long primaryKey,
29 long questionId,
30 long userId,
31 java.util.Calendar voteDate,
32 long voteId) {
33 this.choiceId = choiceId;
34 this.primaryKey = primaryKey;
35 this.questionId = questionId;
36 this.userId = userId;
37 this.voteDate = voteDate;
38 this.voteId = voteId;
39 }
40
41
42
47 public long getChoiceId() {
48 return choiceId;
49 }
50
51
52
57 public void setChoiceId(long choiceId) {
58 this.choiceId = choiceId;
59 }
60
61
62
67 public long getPrimaryKey() {
68 return primaryKey;
69 }
70
71
72
77 public void setPrimaryKey(long primaryKey) {
78 this.primaryKey = primaryKey;
79 }
80
81
82
87 public long getQuestionId() {
88 return questionId;
89 }
90
91
92
97 public void setQuestionId(long questionId) {
98 this.questionId = questionId;
99 }
100
101
102
107 public long getUserId() {
108 return userId;
109 }
110
111
112
117 public void setUserId(long userId) {
118 this.userId = userId;
119 }
120
121
122
127 public java.util.Calendar getVoteDate() {
128 return voteDate;
129 }
130
131
132
137 public void setVoteDate(java.util.Calendar voteDate) {
138 this.voteDate = voteDate;
139 }
140
141
142
147 public long getVoteId() {
148 return voteId;
149 }
150
151
152
157 public void setVoteId(long voteId) {
158 this.voteId = voteId;
159 }
160
161 private java.lang.Object __equalsCalc = null;
162 public synchronized boolean equals(java.lang.Object obj) {
163 if (!(obj instanceof PollsVoteSoap)) return false;
164 PollsVoteSoap other = (PollsVoteSoap) obj;
165 if (obj == null) return false;
166 if (this == obj) return true;
167 if (__equalsCalc != null) {
168 return (__equalsCalc == obj);
169 }
170 __equalsCalc = obj;
171 boolean _equals;
172 _equals = true &&
173 this.choiceId == other.getChoiceId() &&
174 this.primaryKey == other.getPrimaryKey() &&
175 this.questionId == other.getQuestionId() &&
176 this.userId == other.getUserId() &&
177 ((this.voteDate==null && other.getVoteDate()==null) ||
178 (this.voteDate!=null &&
179 this.voteDate.equals(other.getVoteDate()))) &&
180 this.voteId == other.getVoteId();
181 __equalsCalc = null;
182 return _equals;
183 }
184
185 private boolean __hashCodeCalc = false;
186 public synchronized int hashCode() {
187 if (__hashCodeCalc) {
188 return 0;
189 }
190 __hashCodeCalc = true;
191 int _hashCode = 1;
192 _hashCode += new Long(getChoiceId()).hashCode();
193 _hashCode += new Long(getPrimaryKey()).hashCode();
194 _hashCode += new Long(getQuestionId()).hashCode();
195 _hashCode += new Long(getUserId()).hashCode();
196 if (getVoteDate() != null) {
197 _hashCode += getVoteDate().hashCode();
198 }
199 _hashCode += new Long(getVoteId()).hashCode();
200 __hashCodeCalc = false;
201 return _hashCode;
202 }
203
204 private static org.apache.axis.description.TypeDesc typeDesc =
206 new org.apache.axis.description.TypeDesc(PollsVoteSoap.class, true);
207
208 static {
209 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsVoteSoap"));
210 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
211 elemField.setFieldName("choiceId");
212 elemField.setXmlName(new javax.xml.namespace.QName("", "choiceId"));
213 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
214 elemField.setNillable(false);
215 typeDesc.addFieldDesc(elemField);
216 elemField = new org.apache.axis.description.ElementDesc();
217 elemField.setFieldName("primaryKey");
218 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
219 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
220 elemField.setNillable(false);
221 typeDesc.addFieldDesc(elemField);
222 elemField = new org.apache.axis.description.ElementDesc();
223 elemField.setFieldName("questionId");
224 elemField.setXmlName(new javax.xml.namespace.QName("", "questionId"));
225 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
226 elemField.setNillable(false);
227 typeDesc.addFieldDesc(elemField);
228 elemField = new org.apache.axis.description.ElementDesc();
229 elemField.setFieldName("userId");
230 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
231 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
232 elemField.setNillable(false);
233 typeDesc.addFieldDesc(elemField);
234 elemField = new org.apache.axis.description.ElementDesc();
235 elemField.setFieldName("voteDate");
236 elemField.setXmlName(new javax.xml.namespace.QName("", "voteDate"));
237 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
238 elemField.setNillable(true);
239 typeDesc.addFieldDesc(elemField);
240 elemField = new org.apache.axis.description.ElementDesc();
241 elemField.setFieldName("voteId");
242 elemField.setXmlName(new javax.xml.namespace.QName("", "voteId"));
243 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
244 elemField.setNillable(false);
245 typeDesc.addFieldDesc(elemField);
246 }
247
248
251 public static org.apache.axis.description.TypeDesc getTypeDesc() {
252 return typeDesc;
253 }
254
255
258 public static org.apache.axis.encoding.Serializer getSerializer(
259 java.lang.String mechType,
260 java.lang.Class _javaType,
261 javax.xml.namespace.QName _xmlType) {
262 return
263 new org.apache.axis.encoding.ser.BeanSerializer(
264 _javaType, _xmlType, typeDesc);
265 }
266
267
270 public static org.apache.axis.encoding.Deserializer getDeserializer(
271 java.lang.String mechType,
272 java.lang.Class _javaType,
273 javax.xml.namespace.QName _xmlType) {
274 return
275 new org.apache.axis.encoding.ser.BeanDeserializer(
276 _javaType, _xmlType, typeDesc);
277 }
278
279 }
280