1   /**
2    * ExpandoColumnSoap.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.expando.model;
9   
10  public class ExpandoColumnSoap  implements java.io.Serializable {
11      private long columnId;
12  
13      private long companyId;
14  
15      private java.lang.String defaultData;
16  
17      private java.lang.String name;
18  
19      private long primaryKey;
20  
21      private long tableId;
22  
23      private int type;
24  
25      private java.lang.String typeSettings;
26  
27      public ExpandoColumnSoap() {
28      }
29  
30      public ExpandoColumnSoap(
31             long columnId,
32             long companyId,
33             java.lang.String defaultData,
34             java.lang.String name,
35             long primaryKey,
36             long tableId,
37             int type,
38             java.lang.String typeSettings) {
39             this.columnId = columnId;
40             this.companyId = companyId;
41             this.defaultData = defaultData;
42             this.name = name;
43             this.primaryKey = primaryKey;
44             this.tableId = tableId;
45             this.type = type;
46             this.typeSettings = typeSettings;
47      }
48  
49  
50      /**
51       * Gets the columnId value for this ExpandoColumnSoap.
52       * 
53       * @return columnId
54       */
55      public long getColumnId() {
56          return columnId;
57      }
58  
59  
60      /**
61       * Sets the columnId value for this ExpandoColumnSoap.
62       * 
63       * @param columnId
64       */
65      public void setColumnId(long columnId) {
66          this.columnId = columnId;
67      }
68  
69  
70      /**
71       * Gets the companyId value for this ExpandoColumnSoap.
72       * 
73       * @return companyId
74       */
75      public long getCompanyId() {
76          return companyId;
77      }
78  
79  
80      /**
81       * Sets the companyId value for this ExpandoColumnSoap.
82       * 
83       * @param companyId
84       */
85      public void setCompanyId(long companyId) {
86          this.companyId = companyId;
87      }
88  
89  
90      /**
91       * Gets the defaultData value for this ExpandoColumnSoap.
92       * 
93       * @return defaultData
94       */
95      public java.lang.String getDefaultData() {
96          return defaultData;
97      }
98  
99  
100     /**
101      * Sets the defaultData value for this ExpandoColumnSoap.
102      * 
103      * @param defaultData
104      */
105     public void setDefaultData(java.lang.String defaultData) {
106         this.defaultData = defaultData;
107     }
108 
109 
110     /**
111      * Gets the name value for this ExpandoColumnSoap.
112      * 
113      * @return name
114      */
115     public java.lang.String getName() {
116         return name;
117     }
118 
119 
120     /**
121      * Sets the name value for this ExpandoColumnSoap.
122      * 
123      * @param name
124      */
125     public void setName(java.lang.String name) {
126         this.name = name;
127     }
128 
129 
130     /**
131      * Gets the primaryKey value for this ExpandoColumnSoap.
132      * 
133      * @return primaryKey
134      */
135     public long getPrimaryKey() {
136         return primaryKey;
137     }
138 
139 
140     /**
141      * Sets the primaryKey value for this ExpandoColumnSoap.
142      * 
143      * @param primaryKey
144      */
145     public void setPrimaryKey(long primaryKey) {
146         this.primaryKey = primaryKey;
147     }
148 
149 
150     /**
151      * Gets the tableId value for this ExpandoColumnSoap.
152      * 
153      * @return tableId
154      */
155     public long getTableId() {
156         return tableId;
157     }
158 
159 
160     /**
161      * Sets the tableId value for this ExpandoColumnSoap.
162      * 
163      * @param tableId
164      */
165     public void setTableId(long tableId) {
166         this.tableId = tableId;
167     }
168 
169 
170     /**
171      * Gets the type value for this ExpandoColumnSoap.
172      * 
173      * @return type
174      */
175     public int getType() {
176         return type;
177     }
178 
179 
180     /**
181      * Sets the type value for this ExpandoColumnSoap.
182      * 
183      * @param type
184      */
185     public void setType(int type) {
186         this.type = type;
187     }
188 
189 
190     /**
191      * Gets the typeSettings value for this ExpandoColumnSoap.
192      * 
193      * @return typeSettings
194      */
195     public java.lang.String getTypeSettings() {
196         return typeSettings;
197     }
198 
199 
200     /**
201      * Sets the typeSettings value for this ExpandoColumnSoap.
202      * 
203      * @param typeSettings
204      */
205     public void setTypeSettings(java.lang.String typeSettings) {
206         this.typeSettings = typeSettings;
207     }
208 
209     private java.lang.Object __equalsCalc = null;
210     public synchronized boolean equals(java.lang.Object obj) {
211         if (!(obj instanceof ExpandoColumnSoap)) return false;
212         ExpandoColumnSoap other = (ExpandoColumnSoap) obj;
213         if (obj == null) return false;
214         if (this == obj) return true;
215         if (__equalsCalc != null) {
216             return (__equalsCalc == obj);
217         }
218         __equalsCalc = obj;
219         boolean _equals;
220         _equals = true && 
221             this.columnId == other.getColumnId() &&
222             this.companyId == other.getCompanyId() &&
223             ((this.defaultData==null && other.getDefaultData()==null) || 
224              (this.defaultData!=null &&
225               this.defaultData.equals(other.getDefaultData()))) &&
226             ((this.name==null && other.getName()==null) || 
227              (this.name!=null &&
228               this.name.equals(other.getName()))) &&
229             this.primaryKey == other.getPrimaryKey() &&
230             this.tableId == other.getTableId() &&
231             this.type == other.getType() &&
232             ((this.typeSettings==null && other.getTypeSettings()==null) || 
233              (this.typeSettings!=null &&
234               this.typeSettings.equals(other.getTypeSettings())));
235         __equalsCalc = null;
236         return _equals;
237     }
238 
239     private boolean __hashCodeCalc = false;
240     public synchronized int hashCode() {
241         if (__hashCodeCalc) {
242             return 0;
243         }
244         __hashCodeCalc = true;
245         int _hashCode = 1;
246         _hashCode += new Long(getColumnId()).hashCode();
247         _hashCode += new Long(getCompanyId()).hashCode();
248         if (getDefaultData() != null) {
249             _hashCode += getDefaultData().hashCode();
250         }
251         if (getName() != null) {
252             _hashCode += getName().hashCode();
253         }
254         _hashCode += new Long(getPrimaryKey()).hashCode();
255         _hashCode += new Long(getTableId()).hashCode();
256         _hashCode += getType();
257         if (getTypeSettings() != null) {
258             _hashCode += getTypeSettings().hashCode();
259         }
260         __hashCodeCalc = false;
261         return _hashCode;
262     }
263 
264     // Type metadata
265     private static org.apache.axis.description.TypeDesc typeDesc =
266         new org.apache.axis.description.TypeDesc(ExpandoColumnSoap.class, true);
267 
268     static {
269         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.expando.portlet.liferay.com", "ExpandoColumnSoap"));
270         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
271         elemField.setFieldName("columnId");
272         elemField.setXmlName(new javax.xml.namespace.QName("", "columnId"));
273         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
274         elemField.setNillable(false);
275         typeDesc.addFieldDesc(elemField);
276         elemField = new org.apache.axis.description.ElementDesc();
277         elemField.setFieldName("companyId");
278         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
279         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
280         elemField.setNillable(false);
281         typeDesc.addFieldDesc(elemField);
282         elemField = new org.apache.axis.description.ElementDesc();
283         elemField.setFieldName("defaultData");
284         elemField.setXmlName(new javax.xml.namespace.QName("", "defaultData"));
285         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
286         elemField.setNillable(true);
287         typeDesc.addFieldDesc(elemField);
288         elemField = new org.apache.axis.description.ElementDesc();
289         elemField.setFieldName("name");
290         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
291         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
292         elemField.setNillable(true);
293         typeDesc.addFieldDesc(elemField);
294         elemField = new org.apache.axis.description.ElementDesc();
295         elemField.setFieldName("primaryKey");
296         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
297         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
298         elemField.setNillable(false);
299         typeDesc.addFieldDesc(elemField);
300         elemField = new org.apache.axis.description.ElementDesc();
301         elemField.setFieldName("tableId");
302         elemField.setXmlName(new javax.xml.namespace.QName("", "tableId"));
303         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
304         elemField.setNillable(false);
305         typeDesc.addFieldDesc(elemField);
306         elemField = new org.apache.axis.description.ElementDesc();
307         elemField.setFieldName("type");
308         elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
309         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
310         elemField.setNillable(false);
311         typeDesc.addFieldDesc(elemField);
312         elemField = new org.apache.axis.description.ElementDesc();
313         elemField.setFieldName("typeSettings");
314         elemField.setXmlName(new javax.xml.namespace.QName("", "typeSettings"));
315         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
316         elemField.setNillable(true);
317         typeDesc.addFieldDesc(elemField);
318     }
319 
320     /**
321      * Return type metadata object
322      */
323     public static org.apache.axis.description.TypeDesc getTypeDesc() {
324         return typeDesc;
325     }
326 
327     /**
328      * Get Custom Serializer
329      */
330     public static org.apache.axis.encoding.Serializer getSerializer(
331            java.lang.String mechType, 
332            java.lang.Class _javaType,  
333            javax.xml.namespace.QName _xmlType) {
334         return 
335           new  org.apache.axis.encoding.ser.BeanSerializer(
336             _javaType, _xmlType, typeDesc);
337     }
338 
339     /**
340      * Get Custom Deserializer
341      */
342     public static org.apache.axis.encoding.Deserializer getDeserializer(
343            java.lang.String mechType, 
344            java.lang.Class _javaType,  
345            javax.xml.namespace.QName _xmlType) {
346         return 
347           new  org.apache.axis.encoding.ser.BeanDeserializer(
348             _javaType, _xmlType, typeDesc);
349     }
350 
351 }
352