1   /**
2    * BlogsEntrySoap.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.blogs.model;
9   
10  public class BlogsEntrySoap  implements java.io.Serializable {
11      private boolean allowTrackbacks;
12  
13      private long companyId;
14  
15      private java.lang.String content;
16  
17      private java.util.Calendar createDate;
18  
19      private java.util.Calendar displayDate;
20  
21      private boolean draft;
22  
23      private long entryId;
24  
25      private long groupId;
26  
27      private java.util.Calendar modifiedDate;
28  
29      private long primaryKey;
30  
31      private java.lang.String title;
32  
33      private java.lang.String trackbacks;
34  
35      private java.lang.String urlTitle;
36  
37      private long userId;
38  
39      private java.lang.String userName;
40  
41      private java.lang.String uuid;
42  
43      public BlogsEntrySoap() {
44      }
45  
46      public BlogsEntrySoap(
47             boolean allowTrackbacks,
48             long companyId,
49             java.lang.String content,
50             java.util.Calendar createDate,
51             java.util.Calendar displayDate,
52             boolean draft,
53             long entryId,
54             long groupId,
55             java.util.Calendar modifiedDate,
56             long primaryKey,
57             java.lang.String title,
58             java.lang.String trackbacks,
59             java.lang.String urlTitle,
60             long userId,
61             java.lang.String userName,
62             java.lang.String uuid) {
63             this.allowTrackbacks = allowTrackbacks;
64             this.companyId = companyId;
65             this.content = content;
66             this.createDate = createDate;
67             this.displayDate = displayDate;
68             this.draft = draft;
69             this.entryId = entryId;
70             this.groupId = groupId;
71             this.modifiedDate = modifiedDate;
72             this.primaryKey = primaryKey;
73             this.title = title;
74             this.trackbacks = trackbacks;
75             this.urlTitle = urlTitle;
76             this.userId = userId;
77             this.userName = userName;
78             this.uuid = uuid;
79      }
80  
81  
82      /**
83       * Gets the allowTrackbacks value for this BlogsEntrySoap.
84       * 
85       * @return allowTrackbacks
86       */
87      public boolean isAllowTrackbacks() {
88          return allowTrackbacks;
89      }
90  
91  
92      /**
93       * Sets the allowTrackbacks value for this BlogsEntrySoap.
94       * 
95       * @param allowTrackbacks
96       */
97      public void setAllowTrackbacks(boolean allowTrackbacks) {
98          this.allowTrackbacks = allowTrackbacks;
99      }
100 
101 
102     /**
103      * Gets the companyId value for this BlogsEntrySoap.
104      * 
105      * @return companyId
106      */
107     public long getCompanyId() {
108         return companyId;
109     }
110 
111 
112     /**
113      * Sets the companyId value for this BlogsEntrySoap.
114      * 
115      * @param companyId
116      */
117     public void setCompanyId(long companyId) {
118         this.companyId = companyId;
119     }
120 
121 
122     /**
123      * Gets the content value for this BlogsEntrySoap.
124      * 
125      * @return content
126      */
127     public java.lang.String getContent() {
128         return content;
129     }
130 
131 
132     /**
133      * Sets the content value for this BlogsEntrySoap.
134      * 
135      * @param content
136      */
137     public void setContent(java.lang.String content) {
138         this.content = content;
139     }
140 
141 
142     /**
143      * Gets the createDate value for this BlogsEntrySoap.
144      * 
145      * @return createDate
146      */
147     public java.util.Calendar getCreateDate() {
148         return createDate;
149     }
150 
151 
152     /**
153      * Sets the createDate value for this BlogsEntrySoap.
154      * 
155      * @param createDate
156      */
157     public void setCreateDate(java.util.Calendar createDate) {
158         this.createDate = createDate;
159     }
160 
161 
162     /**
163      * Gets the displayDate value for this BlogsEntrySoap.
164      * 
165      * @return displayDate
166      */
167     public java.util.Calendar getDisplayDate() {
168         return displayDate;
169     }
170 
171 
172     /**
173      * Sets the displayDate value for this BlogsEntrySoap.
174      * 
175      * @param displayDate
176      */
177     public void setDisplayDate(java.util.Calendar displayDate) {
178         this.displayDate = displayDate;
179     }
180 
181 
182     /**
183      * Gets the draft value for this BlogsEntrySoap.
184      * 
185      * @return draft
186      */
187     public boolean isDraft() {
188         return draft;
189     }
190 
191 
192     /**
193      * Sets the draft value for this BlogsEntrySoap.
194      * 
195      * @param draft
196      */
197     public void setDraft(boolean draft) {
198         this.draft = draft;
199     }
200 
201 
202     /**
203      * Gets the entryId value for this BlogsEntrySoap.
204      * 
205      * @return entryId
206      */
207     public long getEntryId() {
208         return entryId;
209     }
210 
211 
212     /**
213      * Sets the entryId value for this BlogsEntrySoap.
214      * 
215      * @param entryId
216      */
217     public void setEntryId(long entryId) {
218         this.entryId = entryId;
219     }
220 
221 
222     /**
223      * Gets the groupId value for this BlogsEntrySoap.
224      * 
225      * @return groupId
226      */
227     public long getGroupId() {
228         return groupId;
229     }
230 
231 
232     /**
233      * Sets the groupId value for this BlogsEntrySoap.
234      * 
235      * @param groupId
236      */
237     public void setGroupId(long groupId) {
238         this.groupId = groupId;
239     }
240 
241 
242     /**
243      * Gets the modifiedDate value for this BlogsEntrySoap.
244      * 
245      * @return modifiedDate
246      */
247     public java.util.Calendar getModifiedDate() {
248         return modifiedDate;
249     }
250 
251 
252     /**
253      * Sets the modifiedDate value for this BlogsEntrySoap.
254      * 
255      * @param modifiedDate
256      */
257     public void setModifiedDate(java.util.Calendar modifiedDate) {
258         this.modifiedDate = modifiedDate;
259     }
260 
261 
262     /**
263      * Gets the primaryKey value for this BlogsEntrySoap.
264      * 
265      * @return primaryKey
266      */
267     public long getPrimaryKey() {
268         return primaryKey;
269     }
270 
271 
272     /**
273      * Sets the primaryKey value for this BlogsEntrySoap.
274      * 
275      * @param primaryKey
276      */
277     public void setPrimaryKey(long primaryKey) {
278         this.primaryKey = primaryKey;
279     }
280 
281 
282     /**
283      * Gets the title value for this BlogsEntrySoap.
284      * 
285      * @return title
286      */
287     public java.lang.String getTitle() {
288         return title;
289     }
290 
291 
292     /**
293      * Sets the title value for this BlogsEntrySoap.
294      * 
295      * @param title
296      */
297     public void setTitle(java.lang.String title) {
298         this.title = title;
299     }
300 
301 
302     /**
303      * Gets the trackbacks value for this BlogsEntrySoap.
304      * 
305      * @return trackbacks
306      */
307     public java.lang.String getTrackbacks() {
308         return trackbacks;
309     }
310 
311 
312     /**
313      * Sets the trackbacks value for this BlogsEntrySoap.
314      * 
315      * @param trackbacks
316      */
317     public void setTrackbacks(java.lang.String trackbacks) {
318         this.trackbacks = trackbacks;
319     }
320 
321 
322     /**
323      * Gets the urlTitle value for this BlogsEntrySoap.
324      * 
325      * @return urlTitle
326      */
327     public java.lang.String getUrlTitle() {
328         return urlTitle;
329     }
330 
331 
332     /**
333      * Sets the urlTitle value for this BlogsEntrySoap.
334      * 
335      * @param urlTitle
336      */
337     public void setUrlTitle(java.lang.String urlTitle) {
338         this.urlTitle = urlTitle;
339     }
340 
341 
342     /**
343      * Gets the userId value for this BlogsEntrySoap.
344      * 
345      * @return userId
346      */
347     public long getUserId() {
348         return userId;
349     }
350 
351 
352     /**
353      * Sets the userId value for this BlogsEntrySoap.
354      * 
355      * @param userId
356      */
357     public void setUserId(long userId) {
358         this.userId = userId;
359     }
360 
361 
362     /**
363      * Gets the userName value for this BlogsEntrySoap.
364      * 
365      * @return userName
366      */
367     public java.lang.String getUserName() {
368         return userName;
369     }
370 
371 
372     /**
373      * Sets the userName value for this BlogsEntrySoap.
374      * 
375      * @param userName
376      */
377     public void setUserName(java.lang.String userName) {
378         this.userName = userName;
379     }
380 
381 
382     /**
383      * Gets the uuid value for this BlogsEntrySoap.
384      * 
385      * @return uuid
386      */
387     public java.lang.String getUuid() {
388         return uuid;
389     }
390 
391 
392     /**
393      * Sets the uuid value for this BlogsEntrySoap.
394      * 
395      * @param uuid
396      */
397     public void setUuid(java.lang.String uuid) {
398         this.uuid = uuid;
399     }
400 
401     private java.lang.Object __equalsCalc = null;
402     public synchronized boolean equals(java.lang.Object obj) {
403         if (!(obj instanceof BlogsEntrySoap)) return false;
404         BlogsEntrySoap other = (BlogsEntrySoap) obj;
405         if (obj == null) return false;
406         if (this == obj) return true;
407         if (__equalsCalc != null) {
408             return (__equalsCalc == obj);
409         }
410         __equalsCalc = obj;
411         boolean _equals;
412         _equals = true && 
413             this.allowTrackbacks == other.isAllowTrackbacks() &&
414             this.companyId == other.getCompanyId() &&
415             ((this.content==null && other.getContent()==null) || 
416              (this.content!=null &&
417               this.content.equals(other.getContent()))) &&
418             ((this.createDate==null && other.getCreateDate()==null) || 
419              (this.createDate!=null &&
420               this.createDate.equals(other.getCreateDate()))) &&
421             ((this.displayDate==null && other.getDisplayDate()==null) || 
422              (this.displayDate!=null &&
423               this.displayDate.equals(other.getDisplayDate()))) &&
424             this.draft == other.isDraft() &&
425             this.entryId == other.getEntryId() &&
426             this.groupId == other.getGroupId() &&
427             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
428              (this.modifiedDate!=null &&
429               this.modifiedDate.equals(other.getModifiedDate()))) &&
430             this.primaryKey == other.getPrimaryKey() &&
431             ((this.title==null && other.getTitle()==null) || 
432              (this.title!=null &&
433               this.title.equals(other.getTitle()))) &&
434             ((this.trackbacks==null && other.getTrackbacks()==null) || 
435              (this.trackbacks!=null &&
436               this.trackbacks.equals(other.getTrackbacks()))) &&
437             ((this.urlTitle==null && other.getUrlTitle()==null) || 
438              (this.urlTitle!=null &&
439               this.urlTitle.equals(other.getUrlTitle()))) &&
440             this.userId == other.getUserId() &&
441             ((this.userName==null && other.getUserName()==null) || 
442              (this.userName!=null &&
443               this.userName.equals(other.getUserName()))) &&
444             ((this.uuid==null && other.getUuid()==null) || 
445              (this.uuid!=null &&
446               this.uuid.equals(other.getUuid())));
447         __equalsCalc = null;
448         return _equals;
449     }
450 
451     private boolean __hashCodeCalc = false;
452     public synchronized int hashCode() {
453         if (__hashCodeCalc) {
454             return 0;
455         }
456         __hashCodeCalc = true;
457         int _hashCode = 1;
458         _hashCode += (isAllowTrackbacks() ? Boolean.TRUE : Boolean.FALSE).hashCode();
459         _hashCode += new Long(getCompanyId()).hashCode();
460         if (getContent() != null) {
461             _hashCode += getContent().hashCode();
462         }
463         if (getCreateDate() != null) {
464             _hashCode += getCreateDate().hashCode();
465         }
466         if (getDisplayDate() != null) {
467             _hashCode += getDisplayDate().hashCode();
468         }
469         _hashCode += (isDraft() ? Boolean.TRUE : Boolean.FALSE).hashCode();
470         _hashCode += new Long(getEntryId()).hashCode();
471         _hashCode += new Long(getGroupId()).hashCode();
472         if (getModifiedDate() != null) {
473             _hashCode += getModifiedDate().hashCode();
474         }
475         _hashCode += new Long(getPrimaryKey()).hashCode();
476         if (getTitle() != null) {
477             _hashCode += getTitle().hashCode();
478         }
479         if (getTrackbacks() != null) {
480             _hashCode += getTrackbacks().hashCode();
481         }
482         if (getUrlTitle() != null) {
483             _hashCode += getUrlTitle().hashCode();
484         }
485         _hashCode += new Long(getUserId()).hashCode();
486         if (getUserName() != null) {
487             _hashCode += getUserName().hashCode();
488         }
489         if (getUuid() != null) {
490             _hashCode += getUuid().hashCode();
491         }
492         __hashCodeCalc = false;
493         return _hashCode;
494     }
495 
496     // Type metadata
497     private static org.apache.axis.description.TypeDesc typeDesc =
498         new org.apache.axis.description.TypeDesc(BlogsEntrySoap.class, true);
499 
500     static {
501         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.blogs.portlet.liferay.com", "BlogsEntrySoap"));
502         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
503         elemField.setFieldName("allowTrackbacks");
504         elemField.setXmlName(new javax.xml.namespace.QName("", "allowTrackbacks"));
505         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
506         elemField.setNillable(false);
507         typeDesc.addFieldDesc(elemField);
508         elemField = new org.apache.axis.description.ElementDesc();
509         elemField.setFieldName("companyId");
510         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
511         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
512         elemField.setNillable(false);
513         typeDesc.addFieldDesc(elemField);
514         elemField = new org.apache.axis.description.ElementDesc();
515         elemField.setFieldName("content");
516         elemField.setXmlName(new javax.xml.namespace.QName("", "content"));
517         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
518         elemField.setNillable(true);
519         typeDesc.addFieldDesc(elemField);
520         elemField = new org.apache.axis.description.ElementDesc();
521         elemField.setFieldName("createDate");
522         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
523         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
524         elemField.setNillable(true);
525         typeDesc.addFieldDesc(elemField);
526         elemField = new org.apache.axis.description.ElementDesc();
527         elemField.setFieldName("displayDate");
528         elemField.setXmlName(new javax.xml.namespace.QName("", "displayDate"));
529         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
530         elemField.setNillable(true);
531         typeDesc.addFieldDesc(elemField);
532         elemField = new org.apache.axis.description.ElementDesc();
533         elemField.setFieldName("draft");
534         elemField.setXmlName(new javax.xml.namespace.QName("", "draft"));
535         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
536         elemField.setNillable(false);
537         typeDesc.addFieldDesc(elemField);
538         elemField = new org.apache.axis.description.ElementDesc();
539         elemField.setFieldName("entryId");
540         elemField.setXmlName(new javax.xml.namespace.QName("", "entryId"));
541         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
542         elemField.setNillable(false);
543         typeDesc.addFieldDesc(elemField);
544         elemField = new org.apache.axis.description.ElementDesc();
545         elemField.setFieldName("groupId");
546         elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
547         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
548         elemField.setNillable(false);
549         typeDesc.addFieldDesc(elemField);
550         elemField = new org.apache.axis.description.ElementDesc();
551         elemField.setFieldName("modifiedDate");
552         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
553         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
554         elemField.setNillable(true);
555         typeDesc.addFieldDesc(elemField);
556         elemField = new org.apache.axis.description.ElementDesc();
557         elemField.setFieldName("primaryKey");
558         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
559         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
560         elemField.setNillable(false);
561         typeDesc.addFieldDesc(elemField);
562         elemField = new org.apache.axis.description.ElementDesc();
563         elemField.setFieldName("title");
564         elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
565         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
566         elemField.setNillable(true);
567         typeDesc.addFieldDesc(elemField);
568         elemField = new org.apache.axis.description.ElementDesc();
569         elemField.setFieldName("trackbacks");
570         elemField.setXmlName(new javax.xml.namespace.QName("", "trackbacks"));
571         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
572         elemField.setNillable(true);
573         typeDesc.addFieldDesc(elemField);
574         elemField = new org.apache.axis.description.ElementDesc();
575         elemField.setFieldName("urlTitle");
576         elemField.setXmlName(new javax.xml.namespace.QName("", "urlTitle"));
577         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
578         elemField.setNillable(true);
579         typeDesc.addFieldDesc(elemField);
580         elemField = new org.apache.axis.description.ElementDesc();
581         elemField.setFieldName("userId");
582         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
583         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
584         elemField.setNillable(false);
585         typeDesc.addFieldDesc(elemField);
586         elemField = new org.apache.axis.description.ElementDesc();
587         elemField.setFieldName("userName");
588         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
589         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
590         elemField.setNillable(true);
591         typeDesc.addFieldDesc(elemField);
592         elemField = new org.apache.axis.description.ElementDesc();
593         elemField.setFieldName("uuid");
594         elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
595         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
596         elemField.setNillable(true);
597         typeDesc.addFieldDesc(elemField);
598     }
599 
600     /**
601      * Return type metadata object
602      */
603     public static org.apache.axis.description.TypeDesc getTypeDesc() {
604         return typeDesc;
605     }
606 
607     /**
608      * Get Custom Serializer
609      */
610     public static org.apache.axis.encoding.Serializer getSerializer(
611            java.lang.String mechType, 
612            java.lang.Class _javaType,  
613            javax.xml.namespace.QName _xmlType) {
614         return 
615           new  org.apache.axis.encoding.ser.BeanSerializer(
616             _javaType, _xmlType, typeDesc);
617     }
618 
619     /**
620      * Get Custom Deserializer
621      */
622     public static org.apache.axis.encoding.Deserializer getDeserializer(
623            java.lang.String mechType, 
624            java.lang.Class _javaType,  
625            javax.xml.namespace.QName _xmlType) {
626         return 
627           new  org.apache.axis.encoding.ser.BeanDeserializer(
628             _javaType, _xmlType, typeDesc);
629     }
630 
631 }
632