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