1
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 java.lang.String mx;
22
23 private long primaryKey;
24
25 private boolean system;
26
27 private java.lang.String virtualHost;
28
29 private java.lang.String webId;
30
31 public CompanySoap() {
32 }
33
34 public CompanySoap(
35 long accountId,
36 long companyId,
37 java.lang.String homeURL,
38 java.lang.String key,
39 long logoId,
40 java.lang.String mx,
41 long primaryKey,
42 boolean system,
43 java.lang.String virtualHost,
44 java.lang.String webId) {
45 this.accountId = accountId;
46 this.companyId = companyId;
47 this.homeURL = homeURL;
48 this.key = key;
49 this.logoId = logoId;
50 this.mx = mx;
51 this.primaryKey = primaryKey;
52 this.system = system;
53 this.virtualHost = virtualHost;
54 this.webId = webId;
55 }
56
57
58
63 public long getAccountId() {
64 return accountId;
65 }
66
67
68
73 public void setAccountId(long accountId) {
74 this.accountId = accountId;
75 }
76
77
78
83 public long getCompanyId() {
84 return companyId;
85 }
86
87
88
93 public void setCompanyId(long companyId) {
94 this.companyId = companyId;
95 }
96
97
98
103 public java.lang.String getHomeURL() {
104 return homeURL;
105 }
106
107
108
113 public void setHomeURL(java.lang.String homeURL) {
114 this.homeURL = homeURL;
115 }
116
117
118
123 public java.lang.String getKey() {
124 return key;
125 }
126
127
128
133 public void setKey(java.lang.String key) {
134 this.key = key;
135 }
136
137
138
143 public long getLogoId() {
144 return logoId;
145 }
146
147
148
153 public void setLogoId(long logoId) {
154 this.logoId = logoId;
155 }
156
157
158
163 public java.lang.String getMx() {
164 return mx;
165 }
166
167
168
173 public void setMx(java.lang.String mx) {
174 this.mx = mx;
175 }
176
177
178
183 public long getPrimaryKey() {
184 return primaryKey;
185 }
186
187
188
193 public void setPrimaryKey(long primaryKey) {
194 this.primaryKey = primaryKey;
195 }
196
197
198
203 public boolean isSystem() {
204 return system;
205 }
206
207
208
213 public void setSystem(boolean system) {
214 this.system = system;
215 }
216
217
218
223 public java.lang.String getVirtualHost() {
224 return virtualHost;
225 }
226
227
228
233 public void setVirtualHost(java.lang.String virtualHost) {
234 this.virtualHost = virtualHost;
235 }
236
237
238
243 public java.lang.String getWebId() {
244 return webId;
245 }
246
247
248
253 public void setWebId(java.lang.String webId) {
254 this.webId = webId;
255 }
256
257 private java.lang.Object __equalsCalc = null;
258 public synchronized boolean equals(java.lang.Object obj) {
259 if (!(obj instanceof CompanySoap)) return false;
260 CompanySoap other = (CompanySoap) 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.accountId == other.getAccountId() &&
270 this.companyId == other.getCompanyId() &&
271 ((this.homeURL==null && other.getHomeURL()==null) ||
272 (this.homeURL!=null &&
273 this.homeURL.equals(other.getHomeURL()))) &&
274 ((this.key==null && other.getKey()==null) ||
275 (this.key!=null &&
276 this.key.equals(other.getKey()))) &&
277 this.logoId == other.getLogoId() &&
278 ((this.mx==null && other.getMx()==null) ||
279 (this.mx!=null &&
280 this.mx.equals(other.getMx()))) &&
281 this.primaryKey == other.getPrimaryKey() &&
282 this.system == other.isSystem() &&
283 ((this.virtualHost==null && other.getVirtualHost()==null) ||
284 (this.virtualHost!=null &&
285 this.virtualHost.equals(other.getVirtualHost()))) &&
286 ((this.webId==null && other.getWebId()==null) ||
287 (this.webId!=null &&
288 this.webId.equals(other.getWebId())));
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(getAccountId()).hashCode();
301 _hashCode += new Long(getCompanyId()).hashCode();
302 if (getHomeURL() != null) {
303 _hashCode += getHomeURL().hashCode();
304 }
305 if (getKey() != null) {
306 _hashCode += getKey().hashCode();
307 }
308 _hashCode += new Long(getLogoId()).hashCode();
309 if (getMx() != null) {
310 _hashCode += getMx().hashCode();
311 }
312 _hashCode += new Long(getPrimaryKey()).hashCode();
313 _hashCode += (isSystem() ? Boolean.TRUE : Boolean.FALSE).hashCode();
314 if (getVirtualHost() != null) {
315 _hashCode += getVirtualHost().hashCode();
316 }
317 if (getWebId() != null) {
318 _hashCode += getWebId().hashCode();
319 }
320 __hashCodeCalc = false;
321 return _hashCode;
322 }
323
324 private static org.apache.axis.description.TypeDesc typeDesc =
326 new org.apache.axis.description.TypeDesc(CompanySoap.class, true);
327
328 static {
329 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CompanySoap"));
330 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
331 elemField.setFieldName("accountId");
332 elemField.setXmlName(new javax.xml.namespace.QName("", "accountId"));
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("companyId");
338 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
339 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
340 elemField.setNillable(false);
341 typeDesc.addFieldDesc(elemField);
342 elemField = new org.apache.axis.description.ElementDesc();
343 elemField.setFieldName("homeURL");
344 elemField.setXmlName(new javax.xml.namespace.QName("", "homeURL"));
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("key");
350 elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
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("logoId");
356 elemField.setXmlName(new javax.xml.namespace.QName("", "logoId"));
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("mx");
362 elemField.setXmlName(new javax.xml.namespace.QName("", "mx"));
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("system");
374 elemField.setXmlName(new javax.xml.namespace.QName("", "system"));
375 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
376 elemField.setNillable(false);
377 typeDesc.addFieldDesc(elemField);
378 elemField = new org.apache.axis.description.ElementDesc();
379 elemField.setFieldName("virtualHost");
380 elemField.setXmlName(new javax.xml.namespace.QName("", "virtualHost"));
381 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
382 elemField.setNillable(true);
383 typeDesc.addFieldDesc(elemField);
384 elemField = new org.apache.axis.description.ElementDesc();
385 elemField.setFieldName("webId");
386 elemField.setXmlName(new javax.xml.namespace.QName("", "webId"));
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
395 public static org.apache.axis.description.TypeDesc getTypeDesc() {
396 return typeDesc;
397 }
398
399
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
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