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