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.soap.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 java.lang.String name;
18  
19      private long organizationId;
20  
21      private long parentOrganizationId;
22  
23      private long primaryKey;
24  
25      private boolean recursable;
26  
27      private long regionId;
28  
29      private int statusId;
30  
31      private java.lang.String type;
32  
33      public OrganizationSoap() {
34      }
35  
36      public OrganizationSoap(
37             java.lang.String comments,
38             long companyId,
39             long countryId,
40             java.lang.String name,
41             long organizationId,
42             long parentOrganizationId,
43             long primaryKey,
44             boolean recursable,
45             long regionId,
46             int statusId,
47             java.lang.String type) {
48             this.comments = comments;
49             this.companyId = companyId;
50             this.countryId = countryId;
51             this.name = name;
52             this.organizationId = organizationId;
53             this.parentOrganizationId = parentOrganizationId;
54             this.primaryKey = primaryKey;
55             this.recursable = recursable;
56             this.regionId = regionId;
57             this.statusId = statusId;
58             this.type = type;
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 name value for this OrganizationSoap.
124      * 
125      * @return name
126      */
127     public java.lang.String getName() {
128         return name;
129     }
130 
131 
132     /**
133      * Sets the name value for this OrganizationSoap.
134      * 
135      * @param name
136      */
137     public void setName(java.lang.String name) {
138         this.name = name;
139     }
140 
141 
142     /**
143      * Gets the organizationId value for this OrganizationSoap.
144      * 
145      * @return organizationId
146      */
147     public long getOrganizationId() {
148         return organizationId;
149     }
150 
151 
152     /**
153      * Sets the organizationId value for this OrganizationSoap.
154      * 
155      * @param organizationId
156      */
157     public void setOrganizationId(long organizationId) {
158         this.organizationId = organizationId;
159     }
160 
161 
162     /**
163      * Gets the parentOrganizationId value for this OrganizationSoap.
164      * 
165      * @return parentOrganizationId
166      */
167     public long getParentOrganizationId() {
168         return parentOrganizationId;
169     }
170 
171 
172     /**
173      * Sets the parentOrganizationId value for this OrganizationSoap.
174      * 
175      * @param parentOrganizationId
176      */
177     public void setParentOrganizationId(long parentOrganizationId) {
178         this.parentOrganizationId = parentOrganizationId;
179     }
180 
181 
182     /**
183      * Gets the primaryKey value for this OrganizationSoap.
184      * 
185      * @return primaryKey
186      */
187     public long getPrimaryKey() {
188         return primaryKey;
189     }
190 
191 
192     /**
193      * Sets the primaryKey value for this OrganizationSoap.
194      * 
195      * @param primaryKey
196      */
197     public void setPrimaryKey(long primaryKey) {
198         this.primaryKey = primaryKey;
199     }
200 
201 
202     /**
203      * Gets the recursable value for this OrganizationSoap.
204      * 
205      * @return recursable
206      */
207     public boolean isRecursable() {
208         return recursable;
209     }
210 
211 
212     /**
213      * Sets the recursable value for this OrganizationSoap.
214      * 
215      * @param recursable
216      */
217     public void setRecursable(boolean recursable) {
218         this.recursable = recursable;
219     }
220 
221 
222     /**
223      * Gets the regionId value for this OrganizationSoap.
224      * 
225      * @return regionId
226      */
227     public long getRegionId() {
228         return regionId;
229     }
230 
231 
232     /**
233      * Sets the regionId value for this OrganizationSoap.
234      * 
235      * @param regionId
236      */
237     public void setRegionId(long regionId) {
238         this.regionId = regionId;
239     }
240 
241 
242     /**
243      * Gets the statusId value for this OrganizationSoap.
244      * 
245      * @return statusId
246      */
247     public int getStatusId() {
248         return statusId;
249     }
250 
251 
252     /**
253      * Sets the statusId value for this OrganizationSoap.
254      * 
255      * @param statusId
256      */
257     public void setStatusId(int statusId) {
258         this.statusId = statusId;
259     }
260 
261 
262     /**
263      * Gets the type value for this OrganizationSoap.
264      * 
265      * @return type
266      */
267     public java.lang.String getType() {
268         return type;
269     }
270 
271 
272     /**
273      * Sets the type value for this OrganizationSoap.
274      * 
275      * @param type
276      */
277     public void setType(java.lang.String type) {
278         this.type = type;
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.name==null && other.getName()==null) || 
299              (this.name!=null &&
300               this.name.equals(other.getName()))) &&
301             this.organizationId == other.getOrganizationId() &&
302             this.parentOrganizationId == other.getParentOrganizationId() &&
303             this.primaryKey == other.getPrimaryKey() &&
304             this.recursable == other.isRecursable() &&
305             this.regionId == other.getRegionId() &&
306             this.statusId == other.getStatusId() &&
307             ((this.type==null && other.getType()==null) || 
308              (this.type!=null &&
309               this.type.equals(other.getType())));
310         __equalsCalc = null;
311         return _equals;
312     }
313 
314     private boolean __hashCodeCalc = false;
315     public synchronized int hashCode() {
316         if (__hashCodeCalc) {
317             return 0;
318         }
319         __hashCodeCalc = true;
320         int _hashCode = 1;
321         if (getComments() != null) {
322             _hashCode += getComments().hashCode();
323         }
324         _hashCode += new Long(getCompanyId()).hashCode();
325         _hashCode += new Long(getCountryId()).hashCode();
326         if (getName() != null) {
327             _hashCode += getName().hashCode();
328         }
329         _hashCode += new Long(getOrganizationId()).hashCode();
330         _hashCode += new Long(getParentOrganizationId()).hashCode();
331         _hashCode += new Long(getPrimaryKey()).hashCode();
332         _hashCode += (isRecursable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
333         _hashCode += new Long(getRegionId()).hashCode();
334         _hashCode += getStatusId();
335         if (getType() != null) {
336             _hashCode += getType().hashCode();
337         }
338         __hashCodeCalc = false;
339         return _hashCode;
340     }
341 
342     // Type metadata
343     private static org.apache.axis.description.TypeDesc typeDesc =
344         new org.apache.axis.description.TypeDesc(OrganizationSoap.class, true);
345 
346     static {
347         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "OrganizationSoap"));
348         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
349         elemField.setFieldName("comments");
350         elemField.setXmlName(new javax.xml.namespace.QName("", "comments"));
351         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
352         elemField.setNillable(true);
353         typeDesc.addFieldDesc(elemField);
354         elemField = new org.apache.axis.description.ElementDesc();
355         elemField.setFieldName("companyId");
356         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
357         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
358         elemField.setNillable(false);
359         typeDesc.addFieldDesc(elemField);
360         elemField = new org.apache.axis.description.ElementDesc();
361         elemField.setFieldName("countryId");
362         elemField.setXmlName(new javax.xml.namespace.QName("", "countryId"));
363         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
364         elemField.setNillable(false);
365         typeDesc.addFieldDesc(elemField);
366         elemField = new org.apache.axis.description.ElementDesc();
367         elemField.setFieldName("name");
368         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
369         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
370         elemField.setNillable(true);
371         typeDesc.addFieldDesc(elemField);
372         elemField = new org.apache.axis.description.ElementDesc();
373         elemField.setFieldName("organizationId");
374         elemField.setXmlName(new javax.xml.namespace.QName("", "organizationId"));
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("parentOrganizationId");
380         elemField.setXmlName(new javax.xml.namespace.QName("", "parentOrganizationId"));
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("primaryKey");
386         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
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("recursable");
392         elemField.setXmlName(new javax.xml.namespace.QName("", "recursable"));
393         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
394         elemField.setNillable(false);
395         typeDesc.addFieldDesc(elemField);
396         elemField = new org.apache.axis.description.ElementDesc();
397         elemField.setFieldName("regionId");
398         elemField.setXmlName(new javax.xml.namespace.QName("", "regionId"));
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("statusId");
404         elemField.setXmlName(new javax.xml.namespace.QName("", "statusId"));
405         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
406         elemField.setNillable(false);
407         typeDesc.addFieldDesc(elemField);
408         elemField = new org.apache.axis.description.ElementDesc();
409         elemField.setFieldName("type");
410         elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
411         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
412         elemField.setNillable(true);
413         typeDesc.addFieldDesc(elemField);
414     }
415 
416     /**
417      * Return type metadata object
418      */
419     public static org.apache.axis.description.TypeDesc getTypeDesc() {
420         return typeDesc;
421     }
422 
423     /**
424      * Get Custom Serializer
425      */
426     public static org.apache.axis.encoding.Serializer getSerializer(
427            java.lang.String mechType, 
428            java.lang.Class _javaType,  
429            javax.xml.namespace.QName _xmlType) {
430         return 
431           new  org.apache.axis.encoding.ser.BeanSerializer(
432             _javaType, _xmlType, typeDesc);
433     }
434 
435     /**
436      * Get Custom Deserializer
437      */
438     public static org.apache.axis.encoding.Deserializer getDeserializer(
439            java.lang.String mechType, 
440            java.lang.Class _javaType,  
441            javax.xml.namespace.QName _xmlType) {
442         return 
443           new  org.apache.axis.encoding.ser.BeanDeserializer(
444             _javaType, _xmlType, typeDesc);
445     }
446 
447 }
448