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