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