1
7
8 package com.liferay.client.soap.portlet.messageboards.model;
9
10 public class MBBanSoap implements java.io.Serializable {
11 private long banId;
12
13 private long banUserId;
14
15 private long companyId;
16
17 private java.util.Calendar createDate;
18
19 private long groupId;
20
21 private java.util.Calendar modifiedDate;
22
23 private long primaryKey;
24
25 private long userId;
26
27 private java.lang.String userName;
28
29 public MBBanSoap() {
30 }
31
32 public MBBanSoap(
33 long banId,
34 long banUserId,
35 long companyId,
36 java.util.Calendar createDate,
37 long groupId,
38 java.util.Calendar modifiedDate,
39 long primaryKey,
40 long userId,
41 java.lang.String userName) {
42 this.banId = banId;
43 this.banUserId = banUserId;
44 this.companyId = companyId;
45 this.createDate = createDate;
46 this.groupId = groupId;
47 this.modifiedDate = modifiedDate;
48 this.primaryKey = primaryKey;
49 this.userId = userId;
50 this.userName = userName;
51 }
52
53
54
59 public long getBanId() {
60 return banId;
61 }
62
63
64
69 public void setBanId(long banId) {
70 this.banId = banId;
71 }
72
73
74
79 public long getBanUserId() {
80 return banUserId;
81 }
82
83
84
89 public void setBanUserId(long banUserId) {
90 this.banUserId = banUserId;
91 }
92
93
94
99 public long getCompanyId() {
100 return companyId;
101 }
102
103
104
109 public void setCompanyId(long companyId) {
110 this.companyId = companyId;
111 }
112
113
114
119 public java.util.Calendar getCreateDate() {
120 return createDate;
121 }
122
123
124
129 public void setCreateDate(java.util.Calendar createDate) {
130 this.createDate = createDate;
131 }
132
133
134
139 public long getGroupId() {
140 return groupId;
141 }
142
143
144
149 public void setGroupId(long groupId) {
150 this.groupId = groupId;
151 }
152
153
154
159 public java.util.Calendar getModifiedDate() {
160 return modifiedDate;
161 }
162
163
164
169 public void setModifiedDate(java.util.Calendar modifiedDate) {
170 this.modifiedDate = modifiedDate;
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 long getUserId() {
200 return userId;
201 }
202
203
204
209 public void setUserId(long userId) {
210 this.userId = userId;
211 }
212
213
214
219 public java.lang.String getUserName() {
220 return userName;
221 }
222
223
224
229 public void setUserName(java.lang.String userName) {
230 this.userName = userName;
231 }
232
233 private java.lang.Object __equalsCalc = null;
234 public synchronized boolean equals(java.lang.Object obj) {
235 if (!(obj instanceof MBBanSoap)) return false;
236 MBBanSoap other = (MBBanSoap) 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.banId == other.getBanId() &&
246 this.banUserId == other.getBanUserId() &&
247 this.companyId == other.getCompanyId() &&
248 ((this.createDate==null && other.getCreateDate()==null) ||
249 (this.createDate!=null &&
250 this.createDate.equals(other.getCreateDate()))) &&
251 this.groupId == other.getGroupId() &&
252 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
253 (this.modifiedDate!=null &&
254 this.modifiedDate.equals(other.getModifiedDate()))) &&
255 this.primaryKey == other.getPrimaryKey() &&
256 this.userId == other.getUserId() &&
257 ((this.userName==null && other.getUserName()==null) ||
258 (this.userName!=null &&
259 this.userName.equals(other.getUserName())));
260 __equalsCalc = null;
261 return _equals;
262 }
263
264 private boolean __hashCodeCalc = false;
265 public synchronized int hashCode() {
266 if (__hashCodeCalc) {
267 return 0;
268 }
269 __hashCodeCalc = true;
270 int _hashCode = 1;
271 _hashCode += new Long(getBanId()).hashCode();
272 _hashCode += new Long(getBanUserId()).hashCode();
273 _hashCode += new Long(getCompanyId()).hashCode();
274 if (getCreateDate() != null) {
275 _hashCode += getCreateDate().hashCode();
276 }
277 _hashCode += new Long(getGroupId()).hashCode();
278 if (getModifiedDate() != null) {
279 _hashCode += getModifiedDate().hashCode();
280 }
281 _hashCode += new Long(getPrimaryKey()).hashCode();
282 _hashCode += new Long(getUserId()).hashCode();
283 if (getUserName() != null) {
284 _hashCode += getUserName().hashCode();
285 }
286 __hashCodeCalc = false;
287 return _hashCode;
288 }
289
290 private static org.apache.axis.description.TypeDesc typeDesc =
292 new org.apache.axis.description.TypeDesc(MBBanSoap.class, true);
293
294 static {
295 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.messageboards.portlet.liferay.com", "MBBanSoap"));
296 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
297 elemField.setFieldName("banId");
298 elemField.setXmlName(new javax.xml.namespace.QName("", "banId"));
299 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
300 elemField.setNillable(false);
301 typeDesc.addFieldDesc(elemField);
302 elemField = new org.apache.axis.description.ElementDesc();
303 elemField.setFieldName("banUserId");
304 elemField.setXmlName(new javax.xml.namespace.QName("", "banUserId"));
305 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
306 elemField.setNillable(false);
307 typeDesc.addFieldDesc(elemField);
308 elemField = new org.apache.axis.description.ElementDesc();
309 elemField.setFieldName("companyId");
310 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
311 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
312 elemField.setNillable(false);
313 typeDesc.addFieldDesc(elemField);
314 elemField = new org.apache.axis.description.ElementDesc();
315 elemField.setFieldName("createDate");
316 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
317 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
318 elemField.setNillable(true);
319 typeDesc.addFieldDesc(elemField);
320 elemField = new org.apache.axis.description.ElementDesc();
321 elemField.setFieldName("groupId");
322 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
323 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
324 elemField.setNillable(false);
325 typeDesc.addFieldDesc(elemField);
326 elemField = new org.apache.axis.description.ElementDesc();
327 elemField.setFieldName("modifiedDate");
328 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
329 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
330 elemField.setNillable(true);
331 typeDesc.addFieldDesc(elemField);
332 elemField = new org.apache.axis.description.ElementDesc();
333 elemField.setFieldName("primaryKey");
334 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
335 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
336 elemField.setNillable(false);
337 typeDesc.addFieldDesc(elemField);
338 elemField = new org.apache.axis.description.ElementDesc();
339 elemField.setFieldName("userId");
340 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
341 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
342 elemField.setNillable(false);
343 typeDesc.addFieldDesc(elemField);
344 elemField = new org.apache.axis.description.ElementDesc();
345 elemField.setFieldName("userName");
346 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
347 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
348 elemField.setNillable(true);
349 typeDesc.addFieldDesc(elemField);
350 }
351
352
355 public static org.apache.axis.description.TypeDesc getTypeDesc() {
356 return typeDesc;
357 }
358
359
362 public static org.apache.axis.encoding.Serializer getSerializer(
363 java.lang.String mechType,
364 java.lang.Class _javaType,
365 javax.xml.namespace.QName _xmlType) {
366 return
367 new org.apache.axis.encoding.ser.BeanSerializer(
368 _javaType, _xmlType, typeDesc);
369 }
370
371
374 public static org.apache.axis.encoding.Deserializer getDeserializer(
375 java.lang.String mechType,
376 java.lang.Class _javaType,
377 javax.xml.namespace.QName _xmlType) {
378 return
379 new org.apache.axis.encoding.ser.BeanDeserializer(
380 _javaType, _xmlType, typeDesc);
381 }
382
383 }
384