1
7
8 package com.liferay.client.soap.portal.model;
9
10 public class RoleSoap implements java.io.Serializable {
11 private long classNameId;
12
13 private long classPK;
14
15 private long companyId;
16
17 private java.lang.String description;
18
19 private java.lang.String name;
20
21 private long primaryKey;
22
23 private long roleId;
24
25 private int type;
26
27 public RoleSoap() {
28 }
29
30 public RoleSoap(
31 long classNameId,
32 long classPK,
33 long companyId,
34 java.lang.String description,
35 java.lang.String name,
36 long primaryKey,
37 long roleId,
38 int type) {
39 this.classNameId = classNameId;
40 this.classPK = classPK;
41 this.companyId = companyId;
42 this.description = description;
43 this.name = name;
44 this.primaryKey = primaryKey;
45 this.roleId = roleId;
46 this.type = type;
47 }
48
49
50
55 public long getClassNameId() {
56 return classNameId;
57 }
58
59
60
65 public void setClassNameId(long classNameId) {
66 this.classNameId = classNameId;
67 }
68
69
70
75 public long getClassPK() {
76 return classPK;
77 }
78
79
80
85 public void setClassPK(long classPK) {
86 this.classPK = classPK;
87 }
88
89
90
95 public long getCompanyId() {
96 return companyId;
97 }
98
99
100
105 public void setCompanyId(long companyId) {
106 this.companyId = companyId;
107 }
108
109
110
115 public java.lang.String getDescription() {
116 return description;
117 }
118
119
120
125 public void setDescription(java.lang.String description) {
126 this.description = description;
127 }
128
129
130
135 public java.lang.String getName() {
136 return name;
137 }
138
139
140
145 public void setName(java.lang.String name) {
146 this.name = name;
147 }
148
149
150
155 public long getPrimaryKey() {
156 return primaryKey;
157 }
158
159
160
165 public void setPrimaryKey(long primaryKey) {
166 this.primaryKey = primaryKey;
167 }
168
169
170
175 public long getRoleId() {
176 return roleId;
177 }
178
179
180
185 public void setRoleId(long roleId) {
186 this.roleId = roleId;
187 }
188
189
190
195 public int getType() {
196 return type;
197 }
198
199
200
205 public void setType(int type) {
206 this.type = type;
207 }
208
209 private java.lang.Object __equalsCalc = null;
210 public synchronized boolean equals(java.lang.Object obj) {
211 if (!(obj instanceof RoleSoap)) return false;
212 RoleSoap other = (RoleSoap) 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.classNameId == other.getClassNameId() &&
222 this.classPK == other.getClassPK() &&
223 this.companyId == other.getCompanyId() &&
224 ((this.description==null && other.getDescription()==null) ||
225 (this.description!=null &&
226 this.description.equals(other.getDescription()))) &&
227 ((this.name==null && other.getName()==null) ||
228 (this.name!=null &&
229 this.name.equals(other.getName()))) &&
230 this.primaryKey == other.getPrimaryKey() &&
231 this.roleId == other.getRoleId() &&
232 this.type == other.getType();
233 __equalsCalc = null;
234 return _equals;
235 }
236
237 private boolean __hashCodeCalc = false;
238 public synchronized int hashCode() {
239 if (__hashCodeCalc) {
240 return 0;
241 }
242 __hashCodeCalc = true;
243 int _hashCode = 1;
244 _hashCode += new Long(getClassNameId()).hashCode();
245 _hashCode += new Long(getClassPK()).hashCode();
246 _hashCode += new Long(getCompanyId()).hashCode();
247 if (getDescription() != null) {
248 _hashCode += getDescription().hashCode();
249 }
250 if (getName() != null) {
251 _hashCode += getName().hashCode();
252 }
253 _hashCode += new Long(getPrimaryKey()).hashCode();
254 _hashCode += new Long(getRoleId()).hashCode();
255 _hashCode += getType();
256 __hashCodeCalc = false;
257 return _hashCode;
258 }
259
260 private static org.apache.axis.description.TypeDesc typeDesc =
262 new org.apache.axis.description.TypeDesc(RoleSoap.class, true);
263
264 static {
265 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "RoleSoap"));
266 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
267 elemField.setFieldName("classNameId");
268 elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
269 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
270 elemField.setNillable(false);
271 typeDesc.addFieldDesc(elemField);
272 elemField = new org.apache.axis.description.ElementDesc();
273 elemField.setFieldName("classPK");
274 elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
275 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
276 elemField.setNillable(false);
277 typeDesc.addFieldDesc(elemField);
278 elemField = new org.apache.axis.description.ElementDesc();
279 elemField.setFieldName("companyId");
280 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
281 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
282 elemField.setNillable(false);
283 typeDesc.addFieldDesc(elemField);
284 elemField = new org.apache.axis.description.ElementDesc();
285 elemField.setFieldName("description");
286 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
287 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
288 elemField.setNillable(true);
289 typeDesc.addFieldDesc(elemField);
290 elemField = new org.apache.axis.description.ElementDesc();
291 elemField.setFieldName("name");
292 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
293 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
294 elemField.setNillable(true);
295 typeDesc.addFieldDesc(elemField);
296 elemField = new org.apache.axis.description.ElementDesc();
297 elemField.setFieldName("primaryKey");
298 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
299 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
300 elemField.setNillable(false);
301 typeDesc.addFieldDesc(elemField);
302 elemField = new org.apache.axis.description.ElementDesc();
303 elemField.setFieldName("roleId");
304 elemField.setXmlName(new javax.xml.namespace.QName("", "roleId"));
305 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
306 elemField.setNillable(false);
307 typeDesc.addFieldDesc(elemField);
308 elemField = new org.apache.axis.description.ElementDesc();
309 elemField.setFieldName("type");
310 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
311 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
312 elemField.setNillable(false);
313 typeDesc.addFieldDesc(elemField);
314 }
315
316
319 public static org.apache.axis.description.TypeDesc getTypeDesc() {
320 return typeDesc;
321 }
322
323
326 public static org.apache.axis.encoding.Serializer getSerializer(
327 java.lang.String mechType,
328 java.lang.Class _javaType,
329 javax.xml.namespace.QName _xmlType) {
330 return
331 new org.apache.axis.encoding.ser.BeanSerializer(
332 _javaType, _xmlType, typeDesc);
333 }
334
335
338 public static org.apache.axis.encoding.Deserializer getDeserializer(
339 java.lang.String mechType,
340 java.lang.Class _javaType,
341 javax.xml.namespace.QName _xmlType) {
342 return
343 new org.apache.axis.encoding.ser.BeanDeserializer(
344 _javaType, _xmlType, typeDesc);
345 }
346
347 }
348