1
7
8 package com.liferay.client.soap.portlet.ratings.model;
9
10 public class RatingsEntrySoap implements java.io.Serializable {
11 private long classNameId;
12
13 private long classPK;
14
15 private long companyId;
16
17 private java.util.Calendar createDate;
18
19 private long entryId;
20
21 private java.util.Calendar modifiedDate;
22
23 private long primaryKey;
24
25 private double score;
26
27 private long userId;
28
29 private java.lang.String userName;
30
31 public RatingsEntrySoap() {
32 }
33
34 public RatingsEntrySoap(
35 long classNameId,
36 long classPK,
37 long companyId,
38 java.util.Calendar createDate,
39 long entryId,
40 java.util.Calendar modifiedDate,
41 long primaryKey,
42 double score,
43 long userId,
44 java.lang.String userName) {
45 this.classNameId = classNameId;
46 this.classPK = classPK;
47 this.companyId = companyId;
48 this.createDate = createDate;
49 this.entryId = entryId;
50 this.modifiedDate = modifiedDate;
51 this.primaryKey = primaryKey;
52 this.score = score;
53 this.userId = userId;
54 this.userName = userName;
55 }
56
57
58
63 public long getClassNameId() {
64 return classNameId;
65 }
66
67
68
73 public void setClassNameId(long classNameId) {
74 this.classNameId = classNameId;
75 }
76
77
78
83 public long getClassPK() {
84 return classPK;
85 }
86
87
88
93 public void setClassPK(long classPK) {
94 this.classPK = classPK;
95 }
96
97
98
103 public long getCompanyId() {
104 return companyId;
105 }
106
107
108
113 public void setCompanyId(long companyId) {
114 this.companyId = companyId;
115 }
116
117
118
123 public java.util.Calendar getCreateDate() {
124 return createDate;
125 }
126
127
128
133 public void setCreateDate(java.util.Calendar createDate) {
134 this.createDate = createDate;
135 }
136
137
138
143 public long getEntryId() {
144 return entryId;
145 }
146
147
148
153 public void setEntryId(long entryId) {
154 this.entryId = entryId;
155 }
156
157
158
163 public java.util.Calendar getModifiedDate() {
164 return modifiedDate;
165 }
166
167
168
173 public void setModifiedDate(java.util.Calendar modifiedDate) {
174 this.modifiedDate = modifiedDate;
175 }
176
177
178
183 public long getPrimaryKey() {
184 return primaryKey;
185 }
186
187
188
193 public void setPrimaryKey(long primaryKey) {
194 this.primaryKey = primaryKey;
195 }
196
197
198
203 public double getScore() {
204 return score;
205 }
206
207
208
213 public void setScore(double score) {
214 this.score = score;
215 }
216
217
218
223 public long getUserId() {
224 return userId;
225 }
226
227
228
233 public void setUserId(long userId) {
234 this.userId = userId;
235 }
236
237
238
243 public java.lang.String getUserName() {
244 return userName;
245 }
246
247
248
253 public void setUserName(java.lang.String userName) {
254 this.userName = userName;
255 }
256
257 private java.lang.Object __equalsCalc = null;
258 public synchronized boolean equals(java.lang.Object obj) {
259 if (!(obj instanceof RatingsEntrySoap)) return false;
260 RatingsEntrySoap other = (RatingsEntrySoap) 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.classNameId == other.getClassNameId() &&
270 this.classPK == other.getClassPK() &&
271 this.companyId == other.getCompanyId() &&
272 ((this.createDate==null && other.getCreateDate()==null) ||
273 (this.createDate!=null &&
274 this.createDate.equals(other.getCreateDate()))) &&
275 this.entryId == other.getEntryId() &&
276 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
277 (this.modifiedDate!=null &&
278 this.modifiedDate.equals(other.getModifiedDate()))) &&
279 this.primaryKey == other.getPrimaryKey() &&
280 this.score == other.getScore() &&
281 this.userId == other.getUserId() &&
282 ((this.userName==null && other.getUserName()==null) ||
283 (this.userName!=null &&
284 this.userName.equals(other.getUserName())));
285 __equalsCalc = null;
286 return _equals;
287 }
288
289 private boolean __hashCodeCalc = false;
290 public synchronized int hashCode() {
291 if (__hashCodeCalc) {
292 return 0;
293 }
294 __hashCodeCalc = true;
295 int _hashCode = 1;
296 _hashCode += new Long(getClassNameId()).hashCode();
297 _hashCode += new Long(getClassPK()).hashCode();
298 _hashCode += new Long(getCompanyId()).hashCode();
299 if (getCreateDate() != null) {
300 _hashCode += getCreateDate().hashCode();
301 }
302 _hashCode += new Long(getEntryId()).hashCode();
303 if (getModifiedDate() != null) {
304 _hashCode += getModifiedDate().hashCode();
305 }
306 _hashCode += new Long(getPrimaryKey()).hashCode();
307 _hashCode += new Double(getScore()).hashCode();
308 _hashCode += new Long(getUserId()).hashCode();
309 if (getUserName() != null) {
310 _hashCode += getUserName().hashCode();
311 }
312 __hashCodeCalc = false;
313 return _hashCode;
314 }
315
316 private static org.apache.axis.description.TypeDesc typeDesc =
318 new org.apache.axis.description.TypeDesc(RatingsEntrySoap.class, true);
319
320 static {
321 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.ratings.portlet.liferay.com", "RatingsEntrySoap"));
322 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
323 elemField.setFieldName("classNameId");
324 elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
325 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
326 elemField.setNillable(false);
327 typeDesc.addFieldDesc(elemField);
328 elemField = new org.apache.axis.description.ElementDesc();
329 elemField.setFieldName("classPK");
330 elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
331 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
332 elemField.setNillable(false);
333 typeDesc.addFieldDesc(elemField);
334 elemField = new org.apache.axis.description.ElementDesc();
335 elemField.setFieldName("companyId");
336 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
337 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
338 elemField.setNillable(false);
339 typeDesc.addFieldDesc(elemField);
340 elemField = new org.apache.axis.description.ElementDesc();
341 elemField.setFieldName("createDate");
342 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
343 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
344 elemField.setNillable(true);
345 typeDesc.addFieldDesc(elemField);
346 elemField = new org.apache.axis.description.ElementDesc();
347 elemField.setFieldName("entryId");
348 elemField.setXmlName(new javax.xml.namespace.QName("", "entryId"));
349 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
350 elemField.setNillable(false);
351 typeDesc.addFieldDesc(elemField);
352 elemField = new org.apache.axis.description.ElementDesc();
353 elemField.setFieldName("modifiedDate");
354 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
355 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
356 elemField.setNillable(true);
357 typeDesc.addFieldDesc(elemField);
358 elemField = new org.apache.axis.description.ElementDesc();
359 elemField.setFieldName("primaryKey");
360 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
361 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
362 elemField.setNillable(false);
363 typeDesc.addFieldDesc(elemField);
364 elemField = new org.apache.axis.description.ElementDesc();
365 elemField.setFieldName("score");
366 elemField.setXmlName(new javax.xml.namespace.QName("", "score"));
367 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
368 elemField.setNillable(false);
369 typeDesc.addFieldDesc(elemField);
370 elemField = new org.apache.axis.description.ElementDesc();
371 elemField.setFieldName("userId");
372 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
373 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
374 elemField.setNillable(false);
375 typeDesc.addFieldDesc(elemField);
376 elemField = new org.apache.axis.description.ElementDesc();
377 elemField.setFieldName("userName");
378 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
379 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
380 elemField.setNillable(true);
381 typeDesc.addFieldDesc(elemField);
382 }
383
384
387 public static org.apache.axis.description.TypeDesc getTypeDesc() {
388 return typeDesc;
389 }
390
391
394 public static org.apache.axis.encoding.Serializer getSerializer(
395 java.lang.String mechType,
396 java.lang.Class _javaType,
397 javax.xml.namespace.QName _xmlType) {
398 return
399 new org.apache.axis.encoding.ser.BeanSerializer(
400 _javaType, _xmlType, typeDesc);
401 }
402
403
406 public static org.apache.axis.encoding.Deserializer getDeserializer(
407 java.lang.String mechType,
408 java.lang.Class _javaType,
409 javax.xml.namespace.QName _xmlType) {
410 return
411 new org.apache.axis.encoding.ser.BeanDeserializer(
412 _javaType, _xmlType, typeDesc);
413 }
414
415 }
416