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.portlet.expando.model;
9   
10  public class ExpandoColumnSoap  implements java.io.Serializable {
11      private long columnId;
12  
13      private java.lang.String name;
14  
15      private long primaryKey;
16  
17      private long tableId;
18  
19      private int type;
20  
21      public ExpandoColumnSoap() {
22      }
23  
24      public ExpandoColumnSoap(
25             long columnId,
26             java.lang.String name,
27             long primaryKey,
28             long tableId,
29             int type) {
30             this.columnId = columnId;
31             this.name = name;
32             this.primaryKey = primaryKey;
33             this.tableId = tableId;
34             this.type = type;
35      }
36  
37  
38      /**
39       * Gets the columnId value for this ExpandoColumnSoap.
40       * 
41       * @return columnId
42       */
43      public long getColumnId() {
44          return columnId;
45      }
46  
47  
48      /**
49       * Sets the columnId value for this ExpandoColumnSoap.
50       * 
51       * @param columnId
52       */
53      public void setColumnId(long columnId) {
54          this.columnId = columnId;
55      }
56  
57  
58      /**
59       * Gets the name value for this ExpandoColumnSoap.
60       * 
61       * @return name
62       */
63      public java.lang.String getName() {
64          return name;
65      }
66  
67  
68      /**
69       * Sets the name value for this ExpandoColumnSoap.
70       * 
71       * @param name
72       */
73      public void setName(java.lang.String name) {
74          this.name = name;
75      }
76  
77  
78      /**
79       * Gets the primaryKey value for this ExpandoColumnSoap.
80       * 
81       * @return primaryKey
82       */
83      public long getPrimaryKey() {
84          return primaryKey;
85      }
86  
87  
88      /**
89       * Sets the primaryKey value for this ExpandoColumnSoap.
90       * 
91       * @param primaryKey
92       */
93      public void setPrimaryKey(long primaryKey) {
94          this.primaryKey = primaryKey;
95      }
96  
97  
98      /**
99       * Gets the tableId value for this ExpandoColumnSoap.
100      * 
101      * @return tableId
102      */
103     public long getTableId() {
104         return tableId;
105     }
106 
107 
108     /**
109      * Sets the tableId value for this ExpandoColumnSoap.
110      * 
111      * @param tableId
112      */
113     public void setTableId(long tableId) {
114         this.tableId = tableId;
115     }
116 
117 
118     /**
119      * Gets the type value for this ExpandoColumnSoap.
120      * 
121      * @return type
122      */
123     public int getType() {
124         return type;
125     }
126 
127 
128     /**
129      * Sets the type value for this ExpandoColumnSoap.
130      * 
131      * @param type
132      */
133     public void setType(int type) {
134         this.type = type;
135     }
136 
137     private java.lang.Object __equalsCalc = null;
138     public synchronized boolean equals(java.lang.Object obj) {
139         if (!(obj instanceof ExpandoColumnSoap)) return false;
140         ExpandoColumnSoap other = (ExpandoColumnSoap) obj;
141         if (obj == null) return false;
142         if (this == obj) return true;
143         if (__equalsCalc != null) {
144             return (__equalsCalc == obj);
145         }
146         __equalsCalc = obj;
147         boolean _equals;
148         _equals = true && 
149             this.columnId == other.getColumnId() &&
150             ((this.name==null && other.getName()==null) || 
151              (this.name!=null &&
152               this.name.equals(other.getName()))) &&
153             this.primaryKey == other.getPrimaryKey() &&
154             this.tableId == other.getTableId() &&
155             this.type == other.getType();
156         __equalsCalc = null;
157         return _equals;
158     }
159 
160     private boolean __hashCodeCalc = false;
161     public synchronized int hashCode() {
162         if (__hashCodeCalc) {
163             return 0;
164         }
165         __hashCodeCalc = true;
166         int _hashCode = 1;
167         _hashCode += new Long(getColumnId()).hashCode();
168         if (getName() != null) {
169             _hashCode += getName().hashCode();
170         }
171         _hashCode += new Long(getPrimaryKey()).hashCode();
172         _hashCode += new Long(getTableId()).hashCode();
173         _hashCode += getType();
174         __hashCodeCalc = false;
175         return _hashCode;
176     }
177 
178     // Type metadata
179     private static org.apache.axis.description.TypeDesc typeDesc =
180         new org.apache.axis.description.TypeDesc(ExpandoColumnSoap.class, true);
181 
182     static {
183         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.expando.portlet.liferay.com", "ExpandoColumnSoap"));
184         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
185         elemField.setFieldName("columnId");
186         elemField.setXmlName(new javax.xml.namespace.QName("", "columnId"));
187         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
188         elemField.setNillable(false);
189         typeDesc.addFieldDesc(elemField);
190         elemField = new org.apache.axis.description.ElementDesc();
191         elemField.setFieldName("name");
192         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
193         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
194         elemField.setNillable(true);
195         typeDesc.addFieldDesc(elemField);
196         elemField = new org.apache.axis.description.ElementDesc();
197         elemField.setFieldName("primaryKey");
198         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
199         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
200         elemField.setNillable(false);
201         typeDesc.addFieldDesc(elemField);
202         elemField = new org.apache.axis.description.ElementDesc();
203         elemField.setFieldName("tableId");
204         elemField.setXmlName(new javax.xml.namespace.QName("", "tableId"));
205         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
206         elemField.setNillable(false);
207         typeDesc.addFieldDesc(elemField);
208         elemField = new org.apache.axis.description.ElementDesc();
209         elemField.setFieldName("type");
210         elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
211         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
212         elemField.setNillable(false);
213         typeDesc.addFieldDesc(elemField);
214     }
215 
216     /**
217      * Return type metadata object
218      */
219     public static org.apache.axis.description.TypeDesc getTypeDesc() {
220         return typeDesc;
221     }
222 
223     /**
224      * Get Custom Serializer
225      */
226     public static org.apache.axis.encoding.Serializer getSerializer(
227            java.lang.String mechType, 
228            java.lang.Class _javaType,  
229            javax.xml.namespace.QName _xmlType) {
230         return 
231           new  org.apache.axis.encoding.ser.BeanSerializer(
232             _javaType, _xmlType, typeDesc);
233     }
234 
235     /**
236      * Get Custom Deserializer
237      */
238     public static org.apache.axis.encoding.Deserializer getDeserializer(
239            java.lang.String mechType, 
240            java.lang.Class _javaType,  
241            javax.xml.namespace.QName _xmlType) {
242         return 
243           new  org.apache.axis.encoding.ser.BeanDeserializer(
244             _javaType, _xmlType, typeDesc);
245     }
246 
247 }
248