1
7
8 package com.liferay.client.soap.portal.model;
9
10 public class EmailAddressSoap implements java.io.Serializable {
11 private java.lang.String address;
12
13 private long classNameId;
14
15 private long classPK;
16
17 private long companyId;
18
19 private java.util.Calendar createDate;
20
21 private long emailAddressId;
22
23 private java.util.Calendar modifiedDate;
24
25 private boolean primary;
26
27 private long primaryKey;
28
29 private int typeId;
30
31 private long userId;
32
33 private java.lang.String userName;
34
35 public EmailAddressSoap() {
36 }
37
38 public EmailAddressSoap(
39 java.lang.String address,
40 long classNameId,
41 long classPK,
42 long companyId,
43 java.util.Calendar createDate,
44 long emailAddressId,
45 java.util.Calendar modifiedDate,
46 boolean primary,
47 long primaryKey,
48 int typeId,
49 long userId,
50 java.lang.String userName) {
51 this.address = address;
52 this.classNameId = classNameId;
53 this.classPK = classPK;
54 this.companyId = companyId;
55 this.createDate = createDate;
56 this.emailAddressId = emailAddressId;
57 this.modifiedDate = modifiedDate;
58 this.primary = primary;
59 this.primaryKey = primaryKey;
60 this.typeId = typeId;
61 this.userId = userId;
62 this.userName = userName;
63 }
64
65
66
71 public java.lang.String getAddress() {
72 return address;
73 }
74
75
76
81 public void setAddress(java.lang.String address) {
82 this.address = address;
83 }
84
85
86
91 public long getClassNameId() {
92 return classNameId;
93 }
94
95
96
101 public void setClassNameId(long classNameId) {
102 this.classNameId = classNameId;
103 }
104
105
106
111 public long getClassPK() {
112 return classPK;
113 }
114
115
116
121 public void setClassPK(long classPK) {
122 this.classPK = classPK;
123 }
124
125
126
131 public long getCompanyId() {
132 return companyId;
133 }
134
135
136
141 public void setCompanyId(long companyId) {
142 this.companyId = companyId;
143 }
144
145
146
151 public java.util.Calendar getCreateDate() {
152 return createDate;
153 }
154
155
156
161 public void setCreateDate(java.util.Calendar createDate) {
162 this.createDate = createDate;
163 }
164
165
166
171 public long getEmailAddressId() {
172 return emailAddressId;
173 }
174
175
176
181 public void setEmailAddressId(long emailAddressId) {
182 this.emailAddressId = emailAddressId;
183 }
184
185
186
191 public java.util.Calendar getModifiedDate() {
192 return modifiedDate;
193 }
194
195
196
201 public void setModifiedDate(java.util.Calendar modifiedDate) {
202 this.modifiedDate = modifiedDate;
203 }
204
205
206
211 public boolean isPrimary() {
212 return primary;
213 }
214
215
216
221 public void setPrimary(boolean primary) {
222 this.primary = primary;
223 }
224
225
226
231 public long getPrimaryKey() {
232 return primaryKey;
233 }
234
235
236
241 public void setPrimaryKey(long primaryKey) {
242 this.primaryKey = primaryKey;
243 }
244
245
246
251 public int getTypeId() {
252 return typeId;
253 }
254
255
256
261 public void setTypeId(int typeId) {
262 this.typeId = typeId;
263 }
264
265
266
271 public long getUserId() {
272 return userId;
273 }
274
275
276
281 public void setUserId(long userId) {
282 this.userId = userId;
283 }
284
285
286
291 public java.lang.String getUserName() {
292 return userName;
293 }
294
295
296
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 EmailAddressSoap)) return false;
308 EmailAddressSoap other = (EmailAddressSoap) 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.address==null && other.getAddress()==null) ||
318 (this.address!=null &&
319 this.address.equals(other.getAddress()))) &&
320 this.classNameId == other.getClassNameId() &&
321 this.classPK == other.getClassPK() &&
322 this.companyId == other.getCompanyId() &&
323 ((this.createDate==null && other.getCreateDate()==null) ||
324 (this.createDate!=null &&
325 this.createDate.equals(other.getCreateDate()))) &&
326 this.emailAddressId == other.getEmailAddressId() &&
327 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
328 (this.modifiedDate!=null &&
329 this.modifiedDate.equals(other.getModifiedDate()))) &&
330 this.primary == other.isPrimary() &&
331 this.primaryKey == other.getPrimaryKey() &&
332 this.typeId == other.getTypeId() &&
333 this.userId == other.getUserId() &&
334 ((this.userName==null && other.getUserName()==null) ||
335 (this.userName!=null &&
336 this.userName.equals(other.getUserName())));
337 __equalsCalc = null;
338 return _equals;
339 }
340
341 private boolean __hashCodeCalc = false;
342 public synchronized int hashCode() {
343 if (__hashCodeCalc) {
344 return 0;
345 }
346 __hashCodeCalc = true;
347 int _hashCode = 1;
348 if (getAddress() != null) {
349 _hashCode += getAddress().hashCode();
350 }
351 _hashCode += new Long(getClassNameId()).hashCode();
352 _hashCode += new Long(getClassPK()).hashCode();
353 _hashCode += new Long(getCompanyId()).hashCode();
354 if (getCreateDate() != null) {
355 _hashCode += getCreateDate().hashCode();
356 }
357 _hashCode += new Long(getEmailAddressId()).hashCode();
358 if (getModifiedDate() != null) {
359 _hashCode += getModifiedDate().hashCode();
360 }
361 _hashCode += (isPrimary() ? Boolean.TRUE : Boolean.FALSE).hashCode();
362 _hashCode += new Long(getPrimaryKey()).hashCode();
363 _hashCode += getTypeId();
364 _hashCode += new Long(getUserId()).hashCode();
365 if (getUserName() != null) {
366 _hashCode += getUserName().hashCode();
367 }
368 __hashCodeCalc = false;
369 return _hashCode;
370 }
371
372 private static org.apache.axis.description.TypeDesc typeDesc =
374 new org.apache.axis.description.TypeDesc(EmailAddressSoap.class, true);
375
376 static {
377 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "EmailAddressSoap"));
378 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
379 elemField.setFieldName("address");
380 elemField.setXmlName(new javax.xml.namespace.QName("", "address"));
381 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
382 elemField.setNillable(true);
383 typeDesc.addFieldDesc(elemField);
384 elemField = new org.apache.axis.description.ElementDesc();
385 elemField.setFieldName("classNameId");
386 elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
387 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
388 elemField.setNillable(false);
389 typeDesc.addFieldDesc(elemField);
390 elemField = new org.apache.axis.description.ElementDesc();
391 elemField.setFieldName("classPK");
392 elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
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("companyId");
398 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
399 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
400 elemField.setNillable(false);
401 typeDesc.addFieldDesc(elemField);
402 elemField = new org.apache.axis.description.ElementDesc();
403 elemField.setFieldName("createDate");
404 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
405 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
406 elemField.setNillable(true);
407 typeDesc.addFieldDesc(elemField);
408 elemField = new org.apache.axis.description.ElementDesc();
409 elemField.setFieldName("emailAddressId");
410 elemField.setXmlName(new javax.xml.namespace.QName("", "emailAddressId"));
411 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
412 elemField.setNillable(false);
413 typeDesc.addFieldDesc(elemField);
414 elemField = new org.apache.axis.description.ElementDesc();
415 elemField.setFieldName("modifiedDate");
416 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
417 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
418 elemField.setNillable(true);
419 typeDesc.addFieldDesc(elemField);
420 elemField = new org.apache.axis.description.ElementDesc();
421 elemField.setFieldName("primary");
422 elemField.setXmlName(new javax.xml.namespace.QName("", "primary"));
423 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
424 elemField.setNillable(false);
425 typeDesc.addFieldDesc(elemField);
426 elemField = new org.apache.axis.description.ElementDesc();
427 elemField.setFieldName("primaryKey");
428 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
429 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
430 elemField.setNillable(false);
431 typeDesc.addFieldDesc(elemField);
432 elemField = new org.apache.axis.description.ElementDesc();
433 elemField.setFieldName("typeId");
434 elemField.setXmlName(new javax.xml.namespace.QName("", "typeId"));
435 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
436 elemField.setNillable(false);
437 typeDesc.addFieldDesc(elemField);
438 elemField = new org.apache.axis.description.ElementDesc();
439 elemField.setFieldName("userId");
440 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
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("userName");
446 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
447 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
448 elemField.setNillable(true);
449 typeDesc.addFieldDesc(elemField);
450 }
451
452
455 public static org.apache.axis.description.TypeDesc getTypeDesc() {
456 return typeDesc;
457 }
458
459
462 public static org.apache.axis.encoding.Serializer getSerializer(
463 java.lang.String mechType,
464 java.lang.Class _javaType,
465 javax.xml.namespace.QName _xmlType) {
466 return
467 new org.apache.axis.encoding.ser.BeanSerializer(
468 _javaType, _xmlType, typeDesc);
469 }
470
471
474 public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
480 _javaType, _xmlType, typeDesc);
481 }
482
483 }
484