1
7
8 package com.liferay.client.portlet.imagegallery.model;
9
10 public class IGImageSoap 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 long folderId;
18
19 private long imageId;
20
21 private long largeImageId;
22
23 private java.util.Calendar modifiedDate;
24
25 private long primaryKey;
26
27 private long smallImageId;
28
29 private long userId;
30
31 public IGImageSoap() {
32 }
33
34 public IGImageSoap(
35 long companyId,
36 java.util.Calendar createDate,
37 java.lang.String description,
38 long folderId,
39 long imageId,
40 long largeImageId,
41 java.util.Calendar modifiedDate,
42 long primaryKey,
43 long smallImageId,
44 long userId) {
45 this.companyId = companyId;
46 this.createDate = createDate;
47 this.description = description;
48 this.folderId = folderId;
49 this.imageId = imageId;
50 this.largeImageId = largeImageId;
51 this.modifiedDate = modifiedDate;
52 this.primaryKey = primaryKey;
53 this.smallImageId = smallImageId;
54 this.userId = userId;
55 }
56
57
58
63 public long getCompanyId() {
64 return companyId;
65 }
66
67
68
73 public void setCompanyId(long companyId) {
74 this.companyId = companyId;
75 }
76
77
78
83 public java.util.Calendar getCreateDate() {
84 return createDate;
85 }
86
87
88
93 public void setCreateDate(java.util.Calendar createDate) {
94 this.createDate = createDate;
95 }
96
97
98
103 public java.lang.String getDescription() {
104 return description;
105 }
106
107
108
113 public void setDescription(java.lang.String description) {
114 this.description = description;
115 }
116
117
118
123 public long getFolderId() {
124 return folderId;
125 }
126
127
128
133 public void setFolderId(long folderId) {
134 this.folderId = folderId;
135 }
136
137
138
143 public long getImageId() {
144 return imageId;
145 }
146
147
148
153 public void setImageId(long imageId) {
154 this.imageId = imageId;
155 }
156
157
158
163 public long getLargeImageId() {
164 return largeImageId;
165 }
166
167
168
173 public void setLargeImageId(long largeImageId) {
174 this.largeImageId = largeImageId;
175 }
176
177
178
183 public java.util.Calendar getModifiedDate() {
184 return modifiedDate;
185 }
186
187
188
193 public void setModifiedDate(java.util.Calendar modifiedDate) {
194 this.modifiedDate = modifiedDate;
195 }
196
197
198
203 public long getPrimaryKey() {
204 return primaryKey;
205 }
206
207
208
213 public void setPrimaryKey(long primaryKey) {
214 this.primaryKey = primaryKey;
215 }
216
217
218
223 public long getSmallImageId() {
224 return smallImageId;
225 }
226
227
228
233 public void setSmallImageId(long smallImageId) {
234 this.smallImageId = smallImageId;
235 }
236
237
238
243 public long getUserId() {
244 return userId;
245 }
246
247
248
253 public void setUserId(long userId) {
254 this.userId = userId;
255 }
256
257 private java.lang.Object __equalsCalc = null;
258 public synchronized boolean equals(java.lang.Object obj) {
259 if (!(obj instanceof IGImageSoap)) return false;
260 IGImageSoap other = (IGImageSoap) 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.companyId == other.getCompanyId() &&
270 ((this.createDate==null && other.getCreateDate()==null) ||
271 (this.createDate!=null &&
272 this.createDate.equals(other.getCreateDate()))) &&
273 ((this.description==null && other.getDescription()==null) ||
274 (this.description!=null &&
275 this.description.equals(other.getDescription()))) &&
276 this.folderId == other.getFolderId() &&
277 this.imageId == other.getImageId() &&
278 this.largeImageId == other.getLargeImageId() &&
279 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
280 (this.modifiedDate!=null &&
281 this.modifiedDate.equals(other.getModifiedDate()))) &&
282 this.primaryKey == other.getPrimaryKey() &&
283 this.smallImageId == other.getSmallImageId() &&
284 this.userId == other.getUserId();
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(getCompanyId()).hashCode();
297 if (getCreateDate() != null) {
298 _hashCode += getCreateDate().hashCode();
299 }
300 if (getDescription() != null) {
301 _hashCode += getDescription().hashCode();
302 }
303 _hashCode += new Long(getFolderId()).hashCode();
304 _hashCode += new Long(getImageId()).hashCode();
305 _hashCode += new Long(getLargeImageId()).hashCode();
306 if (getModifiedDate() != null) {
307 _hashCode += getModifiedDate().hashCode();
308 }
309 _hashCode += new Long(getPrimaryKey()).hashCode();
310 _hashCode += new Long(getSmallImageId()).hashCode();
311 _hashCode += new Long(getUserId()).hashCode();
312 __hashCodeCalc = false;
313 return _hashCode;
314 }
315
316 private static org.apache.axis.description.TypeDesc typeDesc =
318 new org.apache.axis.description.TypeDesc(IGImageSoap.class, true);
319
320 static {
321 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.imagegallery.portlet.liferay.com", "IGImageSoap"));
322 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
323 elemField.setFieldName("companyId");
324 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
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("createDate");
330 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
331 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
332 elemField.setNillable(true);
333 typeDesc.addFieldDesc(elemField);
334 elemField = new org.apache.axis.description.ElementDesc();
335 elemField.setFieldName("description");
336 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
337 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
338 elemField.setNillable(true);
339 typeDesc.addFieldDesc(elemField);
340 elemField = new org.apache.axis.description.ElementDesc();
341 elemField.setFieldName("folderId");
342 elemField.setXmlName(new javax.xml.namespace.QName("", "folderId"));
343 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
344 elemField.setNillable(false);
345 typeDesc.addFieldDesc(elemField);
346 elemField = new org.apache.axis.description.ElementDesc();
347 elemField.setFieldName("imageId");
348 elemField.setXmlName(new javax.xml.namespace.QName("", "imageId"));
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("largeImageId");
354 elemField.setXmlName(new javax.xml.namespace.QName("", "largeImageId"));
355 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
356 elemField.setNillable(false);
357 typeDesc.addFieldDesc(elemField);
358 elemField = new org.apache.axis.description.ElementDesc();
359 elemField.setFieldName("modifiedDate");
360 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
361 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
362 elemField.setNillable(true);
363 typeDesc.addFieldDesc(elemField);
364 elemField = new org.apache.axis.description.ElementDesc();
365 elemField.setFieldName("primaryKey");
366 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
367 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
368 elemField.setNillable(false);
369 typeDesc.addFieldDesc(elemField);
370 elemField = new org.apache.axis.description.ElementDesc();
371 elemField.setFieldName("smallImageId");
372 elemField.setXmlName(new javax.xml.namespace.QName("", "smallImageId"));
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("userId");
378 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
379 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
380 elemField.setNillable(false);
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