1
7
8 package com.liferay.client.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 java.lang.String virtualHost;
24
25 private java.lang.String webId;
26
27 public CompanySoap() {
28 }
29
30 public CompanySoap(
31 long accountId,
32 long companyId,
33 java.lang.String key,
34 long logoId,
35 java.lang.String mx,
36 long primaryKey,
37 java.lang.String virtualHost,
38 java.lang.String webId) {
39 this.accountId = accountId;
40 this.companyId = companyId;
41 this.key = key;
42 this.logoId = logoId;
43 this.mx = mx;
44 this.primaryKey = primaryKey;
45 this.virtualHost = virtualHost;
46 this.webId = webId;
47 }
48
49
50
55 public long getAccountId() {
56 return accountId;
57 }
58
59
60
65 public void setAccountId(long accountId) {
66 this.accountId = accountId;
67 }
68
69
70
75 public long getCompanyId() {
76 return companyId;
77 }
78
79
80
85 public void setCompanyId(long companyId) {
86 this.companyId = companyId;
87 }
88
89
90
95 public java.lang.String getKey() {
96 return key;
97 }
98
99
100
105 public void setKey(java.lang.String key) {
106 this.key = key;
107 }
108
109
110
115 public long getLogoId() {
116 return logoId;
117 }
118
119
120
125 public void setLogoId(long logoId) {
126 this.logoId = logoId;
127 }
128
129
130
135 public java.lang.String getMx() {
136 return mx;
137 }
138
139
140
145 public void setMx(java.lang.String mx) {
146 this.mx = mx;
147 }
148
149
150
155 public long getPrimaryKey() {
156 return primaryKey;
157 }
158
159
160
165 public void setPrimaryKey(long primaryKey) {
166 this.primaryKey = primaryKey;
167 }
168
169
170
175 public java.lang.String getVirtualHost() {
176 return virtualHost;
177 }
178
179
180
185 public void setVirtualHost(java.lang.String virtualHost) {
186 this.virtualHost = virtualHost;
187 }
188
189
190
195 public java.lang.String getWebId() {
196 return webId;
197 }
198
199
200
205 public void setWebId(java.lang.String webId) {
206 this.webId = webId;
207 }
208
209 private java.lang.Object __equalsCalc = null;
210 public synchronized boolean equals(java.lang.Object obj) {
211 if (!(obj instanceof CompanySoap)) return false;
212 CompanySoap other = (CompanySoap) obj;
213 if (obj == null) return false;
214 if (this == obj) return true;
215 if (__equalsCalc != null) {
216 return (__equalsCalc == obj);
217 }
218 __equalsCalc = obj;
219 boolean _equals;
220 _equals = true &&
221 this.accountId == other.getAccountId() &&
222 this.companyId == other.getCompanyId() &&
223 ((this.key==null && other.getKey()==null) ||
224 (this.key!=null &&
225 this.key.equals(other.getKey()))) &&
226 this.logoId == other.getLogoId() &&
227 ((this.mx==null && other.getMx()==null) ||
228 (this.mx!=null &&
229 this.mx.equals(other.getMx()))) &&
230 this.primaryKey == other.getPrimaryKey() &&
231 ((this.virtualHost==null && other.getVirtualHost()==null) ||
232 (this.virtualHost!=null &&
233 this.virtualHost.equals(other.getVirtualHost()))) &&
234 ((this.webId==null && other.getWebId()==null) ||
235 (this.webId!=null &&
236 this.webId.equals(other.getWebId())));
237 __equalsCalc = null;
238 return _equals;
239 }
240
241 private boolean __hashCodeCalc = false;
242 public synchronized int hashCode() {
243 if (__hashCodeCalc) {
244 return 0;
245 }
246 __hashCodeCalc = true;
247 int _hashCode = 1;
248 _hashCode += new Long(getAccountId()).hashCode();
249 _hashCode += new Long(getCompanyId()).hashCode();
250 if (getKey() != null) {
251 _hashCode += getKey().hashCode();
252 }
253 _hashCode += new Long(getLogoId()).hashCode();
254 if (getMx() != null) {
255 _hashCode += getMx().hashCode();
256 }
257 _hashCode += new Long(getPrimaryKey()).hashCode();
258 if (getVirtualHost() != null) {
259 _hashCode += getVirtualHost().hashCode();
260 }
261 if (getWebId() != null) {
262 _hashCode += getWebId().hashCode();
263 }
264 __hashCodeCalc = false;
265 return _hashCode;
266 }
267
268 private static org.apache.axis.description.TypeDesc typeDesc =
270 new org.apache.axis.description.TypeDesc(CompanySoap.class, true);
271
272 static {
273 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CompanySoap"));
274 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
275 elemField.setFieldName("accountId");
276 elemField.setXmlName(new javax.xml.namespace.QName("", "accountId"));
277 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
278 elemField.setNillable(false);
279 typeDesc.addFieldDesc(elemField);
280 elemField = new org.apache.axis.description.ElementDesc();
281 elemField.setFieldName("companyId");
282 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
283 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
284 elemField.setNillable(false);
285 typeDesc.addFieldDesc(elemField);
286 elemField = new org.apache.axis.description.ElementDesc();
287 elemField.setFieldName("key");
288 elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
289 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
290 elemField.setNillable(true);
291 typeDesc.addFieldDesc(elemField);
292 elemField = new org.apache.axis.description.ElementDesc();
293 elemField.setFieldName("logoId");
294 elemField.setXmlName(new javax.xml.namespace.QName("", "logoId"));
295 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
296 elemField.setNillable(false);
297 typeDesc.addFieldDesc(elemField);
298 elemField = new org.apache.axis.description.ElementDesc();
299 elemField.setFieldName("mx");
300 elemField.setXmlName(new javax.xml.namespace.QName("", "mx"));
301 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
302 elemField.setNillable(true);
303 typeDesc.addFieldDesc(elemField);
304 elemField = new org.apache.axis.description.ElementDesc();
305 elemField.setFieldName("primaryKey");
306 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
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("virtualHost");
312 elemField.setXmlName(new javax.xml.namespace.QName("", "virtualHost"));
313 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
314 elemField.setNillable(true);
315 typeDesc.addFieldDesc(elemField);
316 elemField = new org.apache.axis.description.ElementDesc();
317 elemField.setFieldName("webId");
318 elemField.setXmlName(new javax.xml.namespace.QName("", "webId"));
319 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
320 elemField.setNillable(true);
321 typeDesc.addFieldDesc(elemField);
322 }
323
324
327 public static org.apache.axis.description.TypeDesc getTypeDesc() {
328 return typeDesc;
329 }
330
331
334 public static org.apache.axis.encoding.Serializer getSerializer(
335 java.lang.String mechType,
336 java.lang.Class _javaType,
337 javax.xml.namespace.QName _xmlType) {
338 return
339 new org.apache.axis.encoding.ser.BeanSerializer(
340 _javaType, _xmlType, typeDesc);
341 }
342
343
346 public static org.apache.axis.encoding.Deserializer getDeserializer(
347 java.lang.String mechType,
348 java.lang.Class _javaType,
349 javax.xml.namespace.QName _xmlType) {
350 return
351 new org.apache.axis.encoding.ser.BeanDeserializer(
352 _javaType, _xmlType, typeDesc);
353 }
354
355 }
356