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