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