1
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
43 public long getColumnId() {
44 return columnId;
45 }
46
47
48
53 public void setColumnId(long columnId) {
54 this.columnId = columnId;
55 }
56
57
58
63 public java.lang.String getName() {
64 return name;
65 }
66
67
68
73 public void setName(java.lang.String name) {
74 this.name = name;
75 }
76
77
78
83 public long getPrimaryKey() {
84 return primaryKey;
85 }
86
87
88
93 public void setPrimaryKey(long primaryKey) {
94 this.primaryKey = primaryKey;
95 }
96
97
98
103 public long getTableId() {
104 return tableId;
105 }
106
107
108
113 public void setTableId(long tableId) {
114 this.tableId = tableId;
115 }
116
117
118
123 public int getType() {
124 return type;
125 }
126
127
128
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 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
219 public static org.apache.axis.description.TypeDesc getTypeDesc() {
220 return typeDesc;
221 }
222
223
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
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