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 key;
16
17 private long logoId;
18
19 private java.lang.String mx;
20
21 private long primaryKey;
22
23 private boolean system;
24
25 private java.lang.String virtualHost;
26
27 private java.lang.String webId;
28
29 public CompanySoap() {
30 }
31
32 public CompanySoap(
33 long accountId,
34 long companyId,
35 java.lang.String key,
36 long logoId,
37 java.lang.String mx,
38 long primaryKey,
39 boolean system,
40 java.lang.String virtualHost,
41 java.lang.String webId) {
42 this.accountId = accountId;
43 this.companyId = companyId;
44 this.key = key;
45 this.logoId = logoId;
46 this.mx = mx;
47 this.primaryKey = primaryKey;
48 this.system = system;
49 this.virtualHost = virtualHost;
50 this.webId = webId;
51 }
52
53
54
59 public long getAccountId() {
60 return accountId;
61 }
62
63
64
69 public void setAccountId(long accountId) {
70 this.accountId = accountId;
71 }
72
73
74
79 public long getCompanyId() {
80 return companyId;
81 }
82
83
84
89 public void setCompanyId(long companyId) {
90 this.companyId = companyId;
91 }
92
93
94
99 public java.lang.String getKey() {
100 return key;
101 }
102
103
104
109 public void setKey(java.lang.String key) {
110 this.key = key;
111 }
112
113
114
119 public long getLogoId() {
120 return logoId;
121 }
122
123
124
129 public void setLogoId(long logoId) {
130 this.logoId = logoId;
131 }
132
133
134
139 public java.lang.String getMx() {
140 return mx;
141 }
142
143
144
149 public void setMx(java.lang.String mx) {
150 this.mx = mx;
151 }
152
153
154
159 public long getPrimaryKey() {
160 return primaryKey;
161 }
162
163
164
169 public void setPrimaryKey(long primaryKey) {
170 this.primaryKey = primaryKey;
171 }
172
173
174
179 public boolean isSystem() {
180 return system;
181 }
182
183
184
189 public void setSystem(boolean system) {
190 this.system = system;
191 }
192
193
194
199 public java.lang.String getVirtualHost() {
200 return virtualHost;
201 }
202
203
204
209 public void setVirtualHost(java.lang.String virtualHost) {
210 this.virtualHost = virtualHost;
211 }
212
213
214
219 public java.lang.String getWebId() {
220 return webId;
221 }
222
223
224
229 public void setWebId(java.lang.String webId) {
230 this.webId = webId;
231 }
232
233 private java.lang.Object __equalsCalc = null;
234 public synchronized boolean equals(java.lang.Object obj) {
235 if (!(obj instanceof CompanySoap)) return false;
236 CompanySoap other = (CompanySoap) obj;
237 if (obj == null) return false;
238 if (this == obj) return true;
239 if (__equalsCalc != null) {
240 return (__equalsCalc == obj);
241 }
242 __equalsCalc = obj;
243 boolean _equals;
244 _equals = true &&
245 this.accountId == other.getAccountId() &&
246 this.companyId == other.getCompanyId() &&
247 ((this.key==null && other.getKey()==null) ||
248 (this.key!=null &&
249 this.key.equals(other.getKey()))) &&
250 this.logoId == other.getLogoId() &&
251 ((this.mx==null && other.getMx()==null) ||
252 (this.mx!=null &&
253 this.mx.equals(other.getMx()))) &&
254 this.primaryKey == other.getPrimaryKey() &&
255 this.system == other.isSystem() &&
256 ((this.virtualHost==null && other.getVirtualHost()==null) ||
257 (this.virtualHost!=null &&
258 this.virtualHost.equals(other.getVirtualHost()))) &&
259 ((this.webId==null && other.getWebId()==null) ||
260 (this.webId!=null &&
261 this.webId.equals(other.getWebId())));
262 __equalsCalc = null;
263 return _equals;
264 }
265
266 private boolean __hashCodeCalc = false;
267 public synchronized int hashCode() {
268 if (__hashCodeCalc) {
269 return 0;
270 }
271 __hashCodeCalc = true;
272 int _hashCode = 1;
273 _hashCode += new Long(getAccountId()).hashCode();
274 _hashCode += new Long(getCompanyId()).hashCode();
275 if (getKey() != null) {
276 _hashCode += getKey().hashCode();
277 }
278 _hashCode += new Long(getLogoId()).hashCode();
279 if (getMx() != null) {
280 _hashCode += getMx().hashCode();
281 }
282 _hashCode += new Long(getPrimaryKey()).hashCode();
283 _hashCode += (isSystem() ? Boolean.TRUE : Boolean.FALSE).hashCode();
284 if (getVirtualHost() != null) {
285 _hashCode += getVirtualHost().hashCode();
286 }
287 if (getWebId() != null) {
288 _hashCode += getWebId().hashCode();
289 }
290 __hashCodeCalc = false;
291 return _hashCode;
292 }
293
294 private static org.apache.axis.description.TypeDesc typeDesc =
296 new org.apache.axis.description.TypeDesc(CompanySoap.class, true);
297
298 static {
299 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CompanySoap"));
300 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
301 elemField.setFieldName("accountId");
302 elemField.setXmlName(new javax.xml.namespace.QName("", "accountId"));
303 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
304 elemField.setNillable(false);
305 typeDesc.addFieldDesc(elemField);
306 elemField = new org.apache.axis.description.ElementDesc();
307 elemField.setFieldName("companyId");
308 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
309 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
310 elemField.setNillable(false);
311 typeDesc.addFieldDesc(elemField);
312 elemField = new org.apache.axis.description.ElementDesc();
313 elemField.setFieldName("key");
314 elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
315 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
316 elemField.setNillable(true);
317 typeDesc.addFieldDesc(elemField);
318 elemField = new org.apache.axis.description.ElementDesc();
319 elemField.setFieldName("logoId");
320 elemField.setXmlName(new javax.xml.namespace.QName("", "logoId"));
321 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
322 elemField.setNillable(false);
323 typeDesc.addFieldDesc(elemField);
324 elemField = new org.apache.axis.description.ElementDesc();
325 elemField.setFieldName("mx");
326 elemField.setXmlName(new javax.xml.namespace.QName("", "mx"));
327 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
328 elemField.setNillable(true);
329 typeDesc.addFieldDesc(elemField);
330 elemField = new org.apache.axis.description.ElementDesc();
331 elemField.setFieldName("primaryKey");
332 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
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("system");
338 elemField.setXmlName(new javax.xml.namespace.QName("", "system"));
339 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
340 elemField.setNillable(false);
341 typeDesc.addFieldDesc(elemField);
342 elemField = new org.apache.axis.description.ElementDesc();
343 elemField.setFieldName("virtualHost");
344 elemField.setXmlName(new javax.xml.namespace.QName("", "virtualHost"));
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("webId");
350 elemField.setXmlName(new javax.xml.namespace.QName("", "webId"));
351 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
352 elemField.setNillable(true);
353 typeDesc.addFieldDesc(elemField);
354 }
355
356
359 public static org.apache.axis.description.TypeDesc getTypeDesc() {
360 return typeDesc;
361 }
362
363
366 public static org.apache.axis.encoding.Serializer getSerializer(
367 java.lang.String mechType,
368 java.lang.Class _javaType,
369 javax.xml.namespace.QName _xmlType) {
370 return
371 new org.apache.axis.encoding.ser.BeanSerializer(
372 _javaType, _xmlType, typeDesc);
373 }
374
375
378 public static org.apache.axis.encoding.Deserializer getDeserializer(
379 java.lang.String mechType,
380 java.lang.Class _javaType,
381 javax.xml.namespace.QName _xmlType) {
382 return
383 new org.apache.axis.encoding.ser.BeanDeserializer(
384 _javaType, _xmlType, typeDesc);
385 }
386
387 }
388