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