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 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 homeURL,
36 java.lang.String key,
37 long logoId,
38 java.lang.String mx,
39 long primaryKey,
40 java.lang.String virtualHost,
41 java.lang.String webId) {
42 this.accountId = accountId;
43 this.companyId = companyId;
44 this.homeURL = homeURL;
45 this.key = key;
46 this.logoId = logoId;
47 this.mx = mx;
48 this.primaryKey = primaryKey;
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 getHomeURL() {
100 return homeURL;
101 }
102
103
104
109 public void setHomeURL(java.lang.String homeURL) {
110 this.homeURL = homeURL;
111 }
112
113
114
119 public java.lang.String getKey() {
120 return key;
121 }
122
123
124
129 public void setKey(java.lang.String key) {
130 this.key = key;
131 }
132
133
134
139 public long getLogoId() {
140 return logoId;
141 }
142
143
144
149 public void setLogoId(long logoId) {
150 this.logoId = logoId;
151 }
152
153
154
159 public java.lang.String getMx() {
160 return mx;
161 }
162
163
164
169 public void setMx(java.lang.String mx) {
170 this.mx = mx;
171 }
172
173
174
179 public long getPrimaryKey() {
180 return primaryKey;
181 }
182
183
184
189 public void setPrimaryKey(long primaryKey) {
190 this.primaryKey = primaryKey;
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.homeURL==null && other.getHomeURL()==null) ||
248 (this.homeURL!=null &&
249 this.homeURL.equals(other.getHomeURL()))) &&
250 ((this.key==null && other.getKey()==null) ||
251 (this.key!=null &&
252 this.key.equals(other.getKey()))) &&
253 this.logoId == other.getLogoId() &&
254 ((this.mx==null && other.getMx()==null) ||
255 (this.mx!=null &&
256 this.mx.equals(other.getMx()))) &&
257 this.primaryKey == other.getPrimaryKey() &&
258 ((this.virtualHost==null && other.getVirtualHost()==null) ||
259 (this.virtualHost!=null &&
260 this.virtualHost.equals(other.getVirtualHost()))) &&
261 ((this.webId==null && other.getWebId()==null) ||
262 (this.webId!=null &&
263 this.webId.equals(other.getWebId())));
264 __equalsCalc = null;
265 return _equals;
266 }
267
268 private boolean __hashCodeCalc = false;
269 public synchronized int hashCode() {
270 if (__hashCodeCalc) {
271 return 0;
272 }
273 __hashCodeCalc = true;
274 int _hashCode = 1;
275 _hashCode += new Long(getAccountId()).hashCode();
276 _hashCode += new Long(getCompanyId()).hashCode();
277 if (getHomeURL() != null) {
278 _hashCode += getHomeURL().hashCode();
279 }
280 if (getKey() != null) {
281 _hashCode += getKey().hashCode();
282 }
283 _hashCode += new Long(getLogoId()).hashCode();
284 if (getMx() != null) {
285 _hashCode += getMx().hashCode();
286 }
287 _hashCode += new Long(getPrimaryKey()).hashCode();
288 if (getVirtualHost() != null) {
289 _hashCode += getVirtualHost().hashCode();
290 }
291 if (getWebId() != null) {
292 _hashCode += getWebId().hashCode();
293 }
294 __hashCodeCalc = false;
295 return _hashCode;
296 }
297
298 private static org.apache.axis.description.TypeDesc typeDesc =
300 new org.apache.axis.description.TypeDesc(CompanySoap.class, true);
301
302 static {
303 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CompanySoap"));
304 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
305 elemField.setFieldName("accountId");
306 elemField.setXmlName(new javax.xml.namespace.QName("", "accountId"));
307 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
308 elemField.setNillable(false);
309 typeDesc.addFieldDesc(elemField);
310 elemField = new org.apache.axis.description.ElementDesc();
311 elemField.setFieldName("companyId");
312 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
313 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
314 elemField.setNillable(false);
315 typeDesc.addFieldDesc(elemField);
316 elemField = new org.apache.axis.description.ElementDesc();
317 elemField.setFieldName("homeURL");
318 elemField.setXmlName(new javax.xml.namespace.QName("", "homeURL"));
319 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
320 elemField.setNillable(true);
321 typeDesc.addFieldDesc(elemField);
322 elemField = new org.apache.axis.description.ElementDesc();
323 elemField.setFieldName("key");
324 elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
325 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
326 elemField.setNillable(true);
327 typeDesc.addFieldDesc(elemField);
328 elemField = new org.apache.axis.description.ElementDesc();
329 elemField.setFieldName("logoId");
330 elemField.setXmlName(new javax.xml.namespace.QName("", "logoId"));
331 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
332 elemField.setNillable(false);
333 typeDesc.addFieldDesc(elemField);
334 elemField = new org.apache.axis.description.ElementDesc();
335 elemField.setFieldName("mx");
336 elemField.setXmlName(new javax.xml.namespace.QName("", "mx"));
337 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
338 elemField.setNillable(true);
339 typeDesc.addFieldDesc(elemField);
340 elemField = new org.apache.axis.description.ElementDesc();
341 elemField.setFieldName("primaryKey");
342 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
343 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
344 elemField.setNillable(false);
345 typeDesc.addFieldDesc(elemField);
346 elemField = new org.apache.axis.description.ElementDesc();
347 elemField.setFieldName("virtualHost");
348 elemField.setXmlName(new javax.xml.namespace.QName("", "virtualHost"));
349 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
350 elemField.setNillable(true);
351 typeDesc.addFieldDesc(elemField);
352 elemField = new org.apache.axis.description.ElementDesc();
353 elemField.setFieldName("webId");
354 elemField.setXmlName(new javax.xml.namespace.QName("", "webId"));
355 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
356 elemField.setNillable(true);
357 typeDesc.addFieldDesc(elemField);
358 }
359
360
363 public static org.apache.axis.description.TypeDesc getTypeDesc() {
364 return typeDesc;
365 }
366
367
370 public static org.apache.axis.encoding.Serializer getSerializer(
371 java.lang.String mechType,
372 java.lang.Class _javaType,
373 javax.xml.namespace.QName _xmlType) {
374 return
375 new org.apache.axis.encoding.ser.BeanSerializer(
376 _javaType, _xmlType, typeDesc);
377 }
378
379
382 public static org.apache.axis.encoding.Deserializer getDeserializer(
383 java.lang.String mechType,
384 java.lang.Class _javaType,
385 javax.xml.namespace.QName _xmlType) {
386 return
387 new org.apache.axis.encoding.ser.BeanDeserializer(
388 _javaType, _xmlType, typeDesc);
389 }
390
391 }
392