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