1
7
8 package com.liferay.client.soap.portal.model;
9
10 public class ResourceSoap implements java.io.Serializable {
11 private long codeId;
12
13 private java.lang.String primKey;
14
15 private long primaryKey;
16
17 private long resourceId;
18
19 public ResourceSoap() {
20 }
21
22 public ResourceSoap(
23 long codeId,
24 java.lang.String primKey,
25 long primaryKey,
26 long resourceId) {
27 this.codeId = codeId;
28 this.primKey = primKey;
29 this.primaryKey = primaryKey;
30 this.resourceId = resourceId;
31 }
32
33
34
39 public long getCodeId() {
40 return codeId;
41 }
42
43
44
49 public void setCodeId(long codeId) {
50 this.codeId = codeId;
51 }
52
53
54
59 public java.lang.String getPrimKey() {
60 return primKey;
61 }
62
63
64
69 public void setPrimKey(java.lang.String primKey) {
70 this.primKey = primKey;
71 }
72
73
74
79 public long getPrimaryKey() {
80 return primaryKey;
81 }
82
83
84
89 public void setPrimaryKey(long primaryKey) {
90 this.primaryKey = primaryKey;
91 }
92
93
94
99 public long getResourceId() {
100 return resourceId;
101 }
102
103
104
109 public void setResourceId(long resourceId) {
110 this.resourceId = resourceId;
111 }
112
113 private java.lang.Object __equalsCalc = null;
114 public synchronized boolean equals(java.lang.Object obj) {
115 if (!(obj instanceof ResourceSoap)) return false;
116 ResourceSoap other = (ResourceSoap) 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.codeId == other.getCodeId() &&
126 ((this.primKey==null && other.getPrimKey()==null) ||
127 (this.primKey!=null &&
128 this.primKey.equals(other.getPrimKey()))) &&
129 this.primaryKey == other.getPrimaryKey() &&
130 this.resourceId == other.getResourceId();
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(getCodeId()).hashCode();
143 if (getPrimKey() != null) {
144 _hashCode += getPrimKey().hashCode();
145 }
146 _hashCode += new Long(getPrimaryKey()).hashCode();
147 _hashCode += new Long(getResourceId()).hashCode();
148 __hashCodeCalc = false;
149 return _hashCode;
150 }
151
152 private static org.apache.axis.description.TypeDesc typeDesc =
154 new org.apache.axis.description.TypeDesc(ResourceSoap.class, true);
155
156 static {
157 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "ResourceSoap"));
158 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
159 elemField.setFieldName("codeId");
160 elemField.setXmlName(new javax.xml.namespace.QName("", "codeId"));
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("primKey");
166 elemField.setXmlName(new javax.xml.namespace.QName("", "primKey"));
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("resourceId");
178 elemField.setXmlName(new javax.xml.namespace.QName("", "resourceId"));
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
187 public static org.apache.axis.description.TypeDesc getTypeDesc() {
188 return typeDesc;
189 }
190
191
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
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