1   /**
2    * MembershipRequestSoap.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.portal.model;
9   
10  public class MembershipRequestSoap  implements java.io.Serializable {
11      private java.lang.String comments;
12  
13      private long companyId;
14  
15      private java.util.Calendar createDate;
16  
17      private long groupId;
18  
19      private long membershipRequestId;
20  
21      private long primaryKey;
22  
23      private long replierUserId;
24  
25      private java.lang.String replyComments;
26  
27      private java.util.Calendar replyDate;
28  
29      private int statusId;
30  
31      private long userId;
32  
33      public MembershipRequestSoap() {
34      }
35  
36      public MembershipRequestSoap(
37             java.lang.String comments,
38             long companyId,
39             java.util.Calendar createDate,
40             long groupId,
41             long membershipRequestId,
42             long primaryKey,
43             long replierUserId,
44             java.lang.String replyComments,
45             java.util.Calendar replyDate,
46             int statusId,
47             long userId) {
48             this.comments = comments;
49             this.companyId = companyId;
50             this.createDate = createDate;
51             this.groupId = groupId;
52             this.membershipRequestId = membershipRequestId;
53             this.primaryKey = primaryKey;
54             this.replierUserId = replierUserId;
55             this.replyComments = replyComments;
56             this.replyDate = replyDate;
57             this.statusId = statusId;
58             this.userId = userId;
59      }
60  
61  
62      /**
63       * Gets the comments value for this MembershipRequestSoap.
64       * 
65       * @return comments
66       */
67      public java.lang.String getComments() {
68          return comments;
69      }
70  
71  
72      /**
73       * Sets the comments value for this MembershipRequestSoap.
74       * 
75       * @param comments
76       */
77      public void setComments(java.lang.String comments) {
78          this.comments = comments;
79      }
80  
81  
82      /**
83       * Gets the companyId value for this MembershipRequestSoap.
84       * 
85       * @return companyId
86       */
87      public long getCompanyId() {
88          return companyId;
89      }
90  
91  
92      /**
93       * Sets the companyId value for this MembershipRequestSoap.
94       * 
95       * @param companyId
96       */
97      public void setCompanyId(long companyId) {
98          this.companyId = companyId;
99      }
100 
101 
102     /**
103      * Gets the createDate value for this MembershipRequestSoap.
104      * 
105      * @return createDate
106      */
107     public java.util.Calendar getCreateDate() {
108         return createDate;
109     }
110 
111 
112     /**
113      * Sets the createDate value for this MembershipRequestSoap.
114      * 
115      * @param createDate
116      */
117     public void setCreateDate(java.util.Calendar createDate) {
118         this.createDate = createDate;
119     }
120 
121 
122     /**
123      * Gets the groupId value for this MembershipRequestSoap.
124      * 
125      * @return groupId
126      */
127     public long getGroupId() {
128         return groupId;
129     }
130 
131 
132     /**
133      * Sets the groupId value for this MembershipRequestSoap.
134      * 
135      * @param groupId
136      */
137     public void setGroupId(long groupId) {
138         this.groupId = groupId;
139     }
140 
141 
142     /**
143      * Gets the membershipRequestId value for this MembershipRequestSoap.
144      * 
145      * @return membershipRequestId
146      */
147     public long getMembershipRequestId() {
148         return membershipRequestId;
149     }
150 
151 
152     /**
153      * Sets the membershipRequestId value for this MembershipRequestSoap.
154      * 
155      * @param membershipRequestId
156      */
157     public void setMembershipRequestId(long membershipRequestId) {
158         this.membershipRequestId = membershipRequestId;
159     }
160 
161 
162     /**
163      * Gets the primaryKey value for this MembershipRequestSoap.
164      * 
165      * @return primaryKey
166      */
167     public long getPrimaryKey() {
168         return primaryKey;
169     }
170 
171 
172     /**
173      * Sets the primaryKey value for this MembershipRequestSoap.
174      * 
175      * @param primaryKey
176      */
177     public void setPrimaryKey(long primaryKey) {
178         this.primaryKey = primaryKey;
179     }
180 
181 
182     /**
183      * Gets the replierUserId value for this MembershipRequestSoap.
184      * 
185      * @return replierUserId
186      */
187     public long getReplierUserId() {
188         return replierUserId;
189     }
190 
191 
192     /**
193      * Sets the replierUserId value for this MembershipRequestSoap.
194      * 
195      * @param replierUserId
196      */
197     public void setReplierUserId(long replierUserId) {
198         this.replierUserId = replierUserId;
199     }
200 
201 
202     /**
203      * Gets the replyComments value for this MembershipRequestSoap.
204      * 
205      * @return replyComments
206      */
207     public java.lang.String getReplyComments() {
208         return replyComments;
209     }
210 
211 
212     /**
213      * Sets the replyComments value for this MembershipRequestSoap.
214      * 
215      * @param replyComments
216      */
217     public void setReplyComments(java.lang.String replyComments) {
218         this.replyComments = replyComments;
219     }
220 
221 
222     /**
223      * Gets the replyDate value for this MembershipRequestSoap.
224      * 
225      * @return replyDate
226      */
227     public java.util.Calendar getReplyDate() {
228         return replyDate;
229     }
230 
231 
232     /**
233      * Sets the replyDate value for this MembershipRequestSoap.
234      * 
235      * @param replyDate
236      */
237     public void setReplyDate(java.util.Calendar replyDate) {
238         this.replyDate = replyDate;
239     }
240 
241 
242     /**
243      * Gets the statusId value for this MembershipRequestSoap.
244      * 
245      * @return statusId
246      */
247     public int getStatusId() {
248         return statusId;
249     }
250 
251 
252     /**
253      * Sets the statusId value for this MembershipRequestSoap.
254      * 
255      * @param statusId
256      */
257     public void setStatusId(int statusId) {
258         this.statusId = statusId;
259     }
260 
261 
262     /**
263      * Gets the userId value for this MembershipRequestSoap.
264      * 
265      * @return userId
266      */
267     public long getUserId() {
268         return userId;
269     }
270 
271 
272     /**
273      * Sets the userId value for this MembershipRequestSoap.
274      * 
275      * @param userId
276      */
277     public void setUserId(long userId) {
278         this.userId = userId;
279     }
280 
281     private java.lang.Object __equalsCalc = null;
282     public synchronized boolean equals(java.lang.Object obj) {
283         if (!(obj instanceof MembershipRequestSoap)) return false;
284         MembershipRequestSoap other = (MembershipRequestSoap) obj;
285         if (obj == null) return false;
286         if (this == obj) return true;
287         if (__equalsCalc != null) {
288             return (__equalsCalc == obj);
289         }
290         __equalsCalc = obj;
291         boolean _equals;
292         _equals = true && 
293             ((this.comments==null && other.getComments()==null) || 
294              (this.comments!=null &&
295               this.comments.equals(other.getComments()))) &&
296             this.companyId == other.getCompanyId() &&
297             ((this.createDate==null && other.getCreateDate()==null) || 
298              (this.createDate!=null &&
299               this.createDate.equals(other.getCreateDate()))) &&
300             this.groupId == other.getGroupId() &&
301             this.membershipRequestId == other.getMembershipRequestId() &&
302             this.primaryKey == other.getPrimaryKey() &&
303             this.replierUserId == other.getReplierUserId() &&
304             ((this.replyComments==null && other.getReplyComments()==null) || 
305              (this.replyComments!=null &&
306               this.replyComments.equals(other.getReplyComments()))) &&
307             ((this.replyDate==null && other.getReplyDate()==null) || 
308              (this.replyDate!=null &&
309               this.replyDate.equals(other.getReplyDate()))) &&
310             this.statusId == other.getStatusId() &&
311             this.userId == other.getUserId();
312         __equalsCalc = null;
313         return _equals;
314     }
315 
316     private boolean __hashCodeCalc = false;
317     public synchronized int hashCode() {
318         if (__hashCodeCalc) {
319             return 0;
320         }
321         __hashCodeCalc = true;
322         int _hashCode = 1;
323         if (getComments() != null) {
324             _hashCode += getComments().hashCode();
325         }
326         _hashCode += new Long(getCompanyId()).hashCode();
327         if (getCreateDate() != null) {
328             _hashCode += getCreateDate().hashCode();
329         }
330         _hashCode += new Long(getGroupId()).hashCode();
331         _hashCode += new Long(getMembershipRequestId()).hashCode();
332         _hashCode += new Long(getPrimaryKey()).hashCode();
333         _hashCode += new Long(getReplierUserId()).hashCode();
334         if (getReplyComments() != null) {
335             _hashCode += getReplyComments().hashCode();
336         }
337         if (getReplyDate() != null) {
338             _hashCode += getReplyDate().hashCode();
339         }
340         _hashCode += getStatusId();
341         _hashCode += new Long(getUserId()).hashCode();
342         __hashCodeCalc = false;
343         return _hashCode;
344     }
345 
346     // Type metadata
347     private static org.apache.axis.description.TypeDesc typeDesc =
348         new org.apache.axis.description.TypeDesc(MembershipRequestSoap.class, true);
349 
350     static {
351         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "MembershipRequestSoap"));
352         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
353         elemField.setFieldName("comments");
354         elemField.setXmlName(new javax.xml.namespace.QName("", "comments"));
355         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
356         elemField.setNillable(true);
357         typeDesc.addFieldDesc(elemField);
358         elemField = new org.apache.axis.description.ElementDesc();
359         elemField.setFieldName("companyId");
360         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
361         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
362         elemField.setNillable(false);
363         typeDesc.addFieldDesc(elemField);
364         elemField = new org.apache.axis.description.ElementDesc();
365         elemField.setFieldName("createDate");
366         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
367         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
368         elemField.setNillable(true);
369         typeDesc.addFieldDesc(elemField);
370         elemField = new org.apache.axis.description.ElementDesc();
371         elemField.setFieldName("groupId");
372         elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
373         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
374         elemField.setNillable(false);
375         typeDesc.addFieldDesc(elemField);
376         elemField = new org.apache.axis.description.ElementDesc();
377         elemField.setFieldName("membershipRequestId");
378         elemField.setXmlName(new javax.xml.namespace.QName("", "membershipRequestId"));
379         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
380         elemField.setNillable(false);
381         typeDesc.addFieldDesc(elemField);
382         elemField = new org.apache.axis.description.ElementDesc();
383         elemField.setFieldName("primaryKey");
384         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
385         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
386         elemField.setNillable(false);
387         typeDesc.addFieldDesc(elemField);
388         elemField = new org.apache.axis.description.ElementDesc();
389         elemField.setFieldName("replierUserId");
390         elemField.setXmlName(new javax.xml.namespace.QName("", "replierUserId"));
391         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
392         elemField.setNillable(false);
393         typeDesc.addFieldDesc(elemField);
394         elemField = new org.apache.axis.description.ElementDesc();
395         elemField.setFieldName("replyComments");
396         elemField.setXmlName(new javax.xml.namespace.QName("", "replyComments"));
397         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
398         elemField.setNillable(true);
399         typeDesc.addFieldDesc(elemField);
400         elemField = new org.apache.axis.description.ElementDesc();
401         elemField.setFieldName("replyDate");
402         elemField.setXmlName(new javax.xml.namespace.QName("", "replyDate"));
403         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
404         elemField.setNillable(true);
405         typeDesc.addFieldDesc(elemField);
406         elemField = new org.apache.axis.description.ElementDesc();
407         elemField.setFieldName("statusId");
408         elemField.setXmlName(new javax.xml.namespace.QName("", "statusId"));
409         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
410         elemField.setNillable(false);
411         typeDesc.addFieldDesc(elemField);
412         elemField = new org.apache.axis.description.ElementDesc();
413         elemField.setFieldName("userId");
414         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
415         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
416         elemField.setNillable(false);
417         typeDesc.addFieldDesc(elemField);
418     }
419 
420     /**
421      * Return type metadata object
422      */
423     public static org.apache.axis.description.TypeDesc getTypeDesc() {
424         return typeDesc;
425     }
426 
427     /**
428      * Get Custom Serializer
429      */
430     public static org.apache.axis.encoding.Serializer getSerializer(
431            java.lang.String mechType, 
432            java.lang.Class _javaType,  
433            javax.xml.namespace.QName _xmlType) {
434         return 
435           new  org.apache.axis.encoding.ser.BeanSerializer(
436             _javaType, _xmlType, typeDesc);
437     }
438 
439     /**
440      * Get Custom Deserializer
441      */
442     public static org.apache.axis.encoding.Deserializer getDeserializer(
443            java.lang.String mechType, 
444            java.lang.Class _javaType,  
445            javax.xml.namespace.QName _xmlType) {
446         return 
447           new  org.apache.axis.encoding.ser.BeanDeserializer(
448             _javaType, _xmlType, typeDesc);
449     }
450 
451 }
452