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