1   /**
2    * MBBanSoap.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
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      /**
55       * Gets the banId value for this MBBanSoap.
56       * 
57       * @return banId
58       */
59      public long getBanId() {
60          return banId;
61      }
62  
63  
64      /**
65       * Sets the banId value for this MBBanSoap.
66       * 
67       * @param banId
68       */
69      public void setBanId(long banId) {
70          this.banId = banId;
71      }
72  
73  
74      /**
75       * Gets the banUserId value for this MBBanSoap.
76       * 
77       * @return banUserId
78       */
79      public long getBanUserId() {
80          return banUserId;
81      }
82  
83  
84      /**
85       * Sets the banUserId value for this MBBanSoap.
86       * 
87       * @param banUserId
88       */
89      public void setBanUserId(long banUserId) {
90          this.banUserId = banUserId;
91      }
92  
93  
94      /**
95       * Gets the companyId value for this MBBanSoap.
96       * 
97       * @return companyId
98       */
99      public long getCompanyId() {
100         return companyId;
101     }
102 
103 
104     /**
105      * Sets the companyId value for this MBBanSoap.
106      * 
107      * @param companyId
108      */
109     public void setCompanyId(long companyId) {
110         this.companyId = companyId;
111     }
112 
113 
114     /**
115      * Gets the createDate value for this MBBanSoap.
116      * 
117      * @return createDate
118      */
119     public java.util.Calendar getCreateDate() {
120         return createDate;
121     }
122 
123 
124     /**
125      * Sets the createDate value for this MBBanSoap.
126      * 
127      * @param createDate
128      */
129     public void setCreateDate(java.util.Calendar createDate) {
130         this.createDate = createDate;
131     }
132 
133 
134     /**
135      * Gets the groupId value for this MBBanSoap.
136      * 
137      * @return groupId
138      */
139     public long getGroupId() {
140         return groupId;
141     }
142 
143 
144     /**
145      * Sets the groupId value for this MBBanSoap.
146      * 
147      * @param groupId
148      */
149     public void setGroupId(long groupId) {
150         this.groupId = groupId;
151     }
152 
153 
154     /**
155      * Gets the modifiedDate value for this MBBanSoap.
156      * 
157      * @return modifiedDate
158      */
159     public java.util.Calendar getModifiedDate() {
160         return modifiedDate;
161     }
162 
163 
164     /**
165      * Sets the modifiedDate value for this MBBanSoap.
166      * 
167      * @param modifiedDate
168      */
169     public void setModifiedDate(java.util.Calendar modifiedDate) {
170         this.modifiedDate = modifiedDate;
171     }
172 
173 
174     /**
175      * Gets the primaryKey value for this MBBanSoap.
176      * 
177      * @return primaryKey
178      */
179     public long getPrimaryKey() {
180         return primaryKey;
181     }
182 
183 
184     /**
185      * Sets the primaryKey value for this MBBanSoap.
186      * 
187      * @param primaryKey
188      */
189     public void setPrimaryKey(long primaryKey) {
190         this.primaryKey = primaryKey;
191     }
192 
193 
194     /**
195      * Gets the userId value for this MBBanSoap.
196      * 
197      * @return userId
198      */
199     public long getUserId() {
200         return userId;
201     }
202 
203 
204     /**
205      * Sets the userId value for this MBBanSoap.
206      * 
207      * @param userId
208      */
209     public void setUserId(long userId) {
210         this.userId = userId;
211     }
212 
213 
214     /**
215      * Gets the userName value for this MBBanSoap.
216      * 
217      * @return userName
218      */
219     public java.lang.String getUserName() {
220         return userName;
221     }
222 
223 
224     /**
225      * Sets the userName value for this MBBanSoap.
226      * 
227      * @param userName
228      */
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     // Type metadata
291     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     /**
353      * Return type metadata object
354      */
355     public static org.apache.axis.description.TypeDesc getTypeDesc() {
356         return typeDesc;
357     }
358 
359     /**
360      * Get Custom Serializer
361      */
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     /**
372      * Get Custom Deserializer
373      */
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