1   /**
2    * TeamSoap.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 TeamSoap  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 groupId;
18  
19      private java.util.Calendar modifiedDate;
20  
21      private java.lang.String name;
22  
23      private long primaryKey;
24  
25      private long teamId;
26  
27      private long userId;
28  
29      private java.lang.String userName;
30  
31      public TeamSoap() {
32      }
33  
34      public TeamSoap(
35             long companyId,
36             java.util.Calendar createDate,
37             java.lang.String description,
38             long groupId,
39             java.util.Calendar modifiedDate,
40             java.lang.String name,
41             long primaryKey,
42             long teamId,
43             long userId,
44             java.lang.String userName) {
45             this.companyId = companyId;
46             this.createDate = createDate;
47             this.description = description;
48             this.groupId = groupId;
49             this.modifiedDate = modifiedDate;
50             this.name = name;
51             this.primaryKey = primaryKey;
52             this.teamId = teamId;
53             this.userId = userId;
54             this.userName = userName;
55      }
56  
57  
58      /**
59       * Gets the companyId value for this TeamSoap.
60       * 
61       * @return companyId
62       */
63      public long getCompanyId() {
64          return companyId;
65      }
66  
67  
68      /**
69       * Sets the companyId value for this TeamSoap.
70       * 
71       * @param companyId
72       */
73      public void setCompanyId(long companyId) {
74          this.companyId = companyId;
75      }
76  
77  
78      /**
79       * Gets the createDate value for this TeamSoap.
80       * 
81       * @return createDate
82       */
83      public java.util.Calendar getCreateDate() {
84          return createDate;
85      }
86  
87  
88      /**
89       * Sets the createDate value for this TeamSoap.
90       * 
91       * @param createDate
92       */
93      public void setCreateDate(java.util.Calendar createDate) {
94          this.createDate = createDate;
95      }
96  
97  
98      /**
99       * Gets the description value for this TeamSoap.
100      * 
101      * @return description
102      */
103     public java.lang.String getDescription() {
104         return description;
105     }
106 
107 
108     /**
109      * Sets the description value for this TeamSoap.
110      * 
111      * @param description
112      */
113     public void setDescription(java.lang.String description) {
114         this.description = description;
115     }
116 
117 
118     /**
119      * Gets the groupId value for this TeamSoap.
120      * 
121      * @return groupId
122      */
123     public long getGroupId() {
124         return groupId;
125     }
126 
127 
128     /**
129      * Sets the groupId value for this TeamSoap.
130      * 
131      * @param groupId
132      */
133     public void setGroupId(long groupId) {
134         this.groupId = groupId;
135     }
136 
137 
138     /**
139      * Gets the modifiedDate value for this TeamSoap.
140      * 
141      * @return modifiedDate
142      */
143     public java.util.Calendar getModifiedDate() {
144         return modifiedDate;
145     }
146 
147 
148     /**
149      * Sets the modifiedDate value for this TeamSoap.
150      * 
151      * @param modifiedDate
152      */
153     public void setModifiedDate(java.util.Calendar modifiedDate) {
154         this.modifiedDate = modifiedDate;
155     }
156 
157 
158     /**
159      * Gets the name value for this TeamSoap.
160      * 
161      * @return name
162      */
163     public java.lang.String getName() {
164         return name;
165     }
166 
167 
168     /**
169      * Sets the name value for this TeamSoap.
170      * 
171      * @param name
172      */
173     public void setName(java.lang.String name) {
174         this.name = name;
175     }
176 
177 
178     /**
179      * Gets the primaryKey value for this TeamSoap.
180      * 
181      * @return primaryKey
182      */
183     public long getPrimaryKey() {
184         return primaryKey;
185     }
186 
187 
188     /**
189      * Sets the primaryKey value for this TeamSoap.
190      * 
191      * @param primaryKey
192      */
193     public void setPrimaryKey(long primaryKey) {
194         this.primaryKey = primaryKey;
195     }
196 
197 
198     /**
199      * Gets the teamId value for this TeamSoap.
200      * 
201      * @return teamId
202      */
203     public long getTeamId() {
204         return teamId;
205     }
206 
207 
208     /**
209      * Sets the teamId value for this TeamSoap.
210      * 
211      * @param teamId
212      */
213     public void setTeamId(long teamId) {
214         this.teamId = teamId;
215     }
216 
217 
218     /**
219      * Gets the userId value for this TeamSoap.
220      * 
221      * @return userId
222      */
223     public long getUserId() {
224         return userId;
225     }
226 
227 
228     /**
229      * Sets the userId value for this TeamSoap.
230      * 
231      * @param userId
232      */
233     public void setUserId(long userId) {
234         this.userId = userId;
235     }
236 
237 
238     /**
239      * Gets the userName value for this TeamSoap.
240      * 
241      * @return userName
242      */
243     public java.lang.String getUserName() {
244         return userName;
245     }
246 
247 
248     /**
249      * Sets the userName value for this TeamSoap.
250      * 
251      * @param userName
252      */
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 TeamSoap)) return false;
260         TeamSoap other = (TeamSoap) 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.groupId == other.getGroupId() &&
277             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
278              (this.modifiedDate!=null &&
279               this.modifiedDate.equals(other.getModifiedDate()))) &&
280             ((this.name==null && other.getName()==null) || 
281              (this.name!=null &&
282               this.name.equals(other.getName()))) &&
283             this.primaryKey == other.getPrimaryKey() &&
284             this.teamId == other.getTeamId() &&
285             this.userId == other.getUserId() &&
286             ((this.userName==null && other.getUserName()==null) || 
287              (this.userName!=null &&
288               this.userName.equals(other.getUserName())));
289         __equalsCalc = null;
290         return _equals;
291     }
292 
293     private boolean __hashCodeCalc = false;
294     public synchronized int hashCode() {
295         if (__hashCodeCalc) {
296             return 0;
297         }
298         __hashCodeCalc = true;
299         int _hashCode = 1;
300         _hashCode += new Long(getCompanyId()).hashCode();
301         if (getCreateDate() != null) {
302             _hashCode += getCreateDate().hashCode();
303         }
304         if (getDescription() != null) {
305             _hashCode += getDescription().hashCode();
306         }
307         _hashCode += new Long(getGroupId()).hashCode();
308         if (getModifiedDate() != null) {
309             _hashCode += getModifiedDate().hashCode();
310         }
311         if (getName() != null) {
312             _hashCode += getName().hashCode();
313         }
314         _hashCode += new Long(getPrimaryKey()).hashCode();
315         _hashCode += new Long(getTeamId()).hashCode();
316         _hashCode += new Long(getUserId()).hashCode();
317         if (getUserName() != null) {
318             _hashCode += getUserName().hashCode();
319         }
320         __hashCodeCalc = false;
321         return _hashCode;
322     }
323 
324     // Type metadata
325     private static org.apache.axis.description.TypeDesc typeDesc =
326         new org.apache.axis.description.TypeDesc(TeamSoap.class, true);
327 
328     static {
329         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "TeamSoap"));
330         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
331         elemField.setFieldName("companyId");
332         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
333         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
334         elemField.setNillable(false);
335         typeDesc.addFieldDesc(elemField);
336         elemField = new org.apache.axis.description.ElementDesc();
337         elemField.setFieldName("createDate");
338         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
339         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
340         elemField.setNillable(true);
341         typeDesc.addFieldDesc(elemField);
342         elemField = new org.apache.axis.description.ElementDesc();
343         elemField.setFieldName("description");
344         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
345         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
346         elemField.setNillable(true);
347         typeDesc.addFieldDesc(elemField);
348         elemField = new org.apache.axis.description.ElementDesc();
349         elemField.setFieldName("groupId");
350         elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
351         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
352         elemField.setNillable(false);
353         typeDesc.addFieldDesc(elemField);
354         elemField = new org.apache.axis.description.ElementDesc();
355         elemField.setFieldName("modifiedDate");
356         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
357         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
358         elemField.setNillable(true);
359         typeDesc.addFieldDesc(elemField);
360         elemField = new org.apache.axis.description.ElementDesc();
361         elemField.setFieldName("name");
362         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
363         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
364         elemField.setNillable(true);
365         typeDesc.addFieldDesc(elemField);
366         elemField = new org.apache.axis.description.ElementDesc();
367         elemField.setFieldName("primaryKey");
368         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
369         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
370         elemField.setNillable(false);
371         typeDesc.addFieldDesc(elemField);
372         elemField = new org.apache.axis.description.ElementDesc();
373         elemField.setFieldName("teamId");
374         elemField.setXmlName(new javax.xml.namespace.QName("", "teamId"));
375         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
376         elemField.setNillable(false);
377         typeDesc.addFieldDesc(elemField);
378         elemField = new org.apache.axis.description.ElementDesc();
379         elemField.setFieldName("userId");
380         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
381         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
382         elemField.setNillable(false);
383         typeDesc.addFieldDesc(elemField);
384         elemField = new org.apache.axis.description.ElementDesc();
385         elemField.setFieldName("userName");
386         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
387         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
388         elemField.setNillable(true);
389         typeDesc.addFieldDesc(elemField);
390     }
391 
392     /**
393      * Return type metadata object
394      */
395     public static org.apache.axis.description.TypeDesc getTypeDesc() {
396         return typeDesc;
397     }
398 
399     /**
400      * Get Custom Serializer
401      */
402     public static org.apache.axis.encoding.Serializer getSerializer(
403            java.lang.String mechType, 
404            java.lang.Class _javaType,  
405            javax.xml.namespace.QName _xmlType) {
406         return 
407           new  org.apache.axis.encoding.ser.BeanSerializer(
408             _javaType, _xmlType, typeDesc);
409     }
410 
411     /**
412      * Get Custom Deserializer
413      */
414     public static org.apache.axis.encoding.Deserializer getDeserializer(
415            java.lang.String mechType, 
416            java.lang.Class _javaType,  
417            javax.xml.namespace.QName _xmlType) {
418         return 
419           new  org.apache.axis.encoding.ser.BeanDeserializer(
420             _javaType, _xmlType, typeDesc);
421     }
422 
423 }
424