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