1
7
8 package com.liferay.client.soap.portlet.asset.model;
9
10 public class AssetCategorySoap implements java.io.Serializable {
11 private long categoryId;
12
13 private long companyId;
14
15 private java.util.Calendar createDate;
16
17 private long groupId;
18
19 private long leftCategoryId;
20
21 private java.util.Calendar modifiedDate;
22
23 private java.lang.String name;
24
25 private long parentCategoryId;
26
27 private long primaryKey;
28
29 private long rightCategoryId;
30
31 private java.lang.String title;
32
33 private long userId;
34
35 private java.lang.String userName;
36
37 private java.lang.String uuid;
38
39 private long vocabularyId;
40
41 public AssetCategorySoap() {
42 }
43
44 public AssetCategorySoap(
45 long categoryId,
46 long companyId,
47 java.util.Calendar createDate,
48 long groupId,
49 long leftCategoryId,
50 java.util.Calendar modifiedDate,
51 java.lang.String name,
52 long parentCategoryId,
53 long primaryKey,
54 long rightCategoryId,
55 java.lang.String title,
56 long userId,
57 java.lang.String userName,
58 java.lang.String uuid,
59 long vocabularyId) {
60 this.categoryId = categoryId;
61 this.companyId = companyId;
62 this.createDate = createDate;
63 this.groupId = groupId;
64 this.leftCategoryId = leftCategoryId;
65 this.modifiedDate = modifiedDate;
66 this.name = name;
67 this.parentCategoryId = parentCategoryId;
68 this.primaryKey = primaryKey;
69 this.rightCategoryId = rightCategoryId;
70 this.title = title;
71 this.userId = userId;
72 this.userName = userName;
73 this.uuid = uuid;
74 this.vocabularyId = vocabularyId;
75 }
76
77
78
83 public long getCategoryId() {
84 return categoryId;
85 }
86
87
88
93 public void setCategoryId(long categoryId) {
94 this.categoryId = categoryId;
95 }
96
97
98
103 public long getCompanyId() {
104 return companyId;
105 }
106
107
108
113 public void setCompanyId(long companyId) {
114 this.companyId = companyId;
115 }
116
117
118
123 public java.util.Calendar getCreateDate() {
124 return createDate;
125 }
126
127
128
133 public void setCreateDate(java.util.Calendar createDate) {
134 this.createDate = createDate;
135 }
136
137
138
143 public long getGroupId() {
144 return groupId;
145 }
146
147
148
153 public void setGroupId(long groupId) {
154 this.groupId = groupId;
155 }
156
157
158
163 public long getLeftCategoryId() {
164 return leftCategoryId;
165 }
166
167
168
173 public void setLeftCategoryId(long leftCategoryId) {
174 this.leftCategoryId = leftCategoryId;
175 }
176
177
178
183 public java.util.Calendar getModifiedDate() {
184 return modifiedDate;
185 }
186
187
188
193 public void setModifiedDate(java.util.Calendar modifiedDate) {
194 this.modifiedDate = modifiedDate;
195 }
196
197
198
203 public java.lang.String getName() {
204 return name;
205 }
206
207
208
213 public void setName(java.lang.String name) {
214 this.name = name;
215 }
216
217
218
223 public long getParentCategoryId() {
224 return parentCategoryId;
225 }
226
227
228
233 public void setParentCategoryId(long parentCategoryId) {
234 this.parentCategoryId = parentCategoryId;
235 }
236
237
238
243 public long getPrimaryKey() {
244 return primaryKey;
245 }
246
247
248
253 public void setPrimaryKey(long primaryKey) {
254 this.primaryKey = primaryKey;
255 }
256
257
258
263 public long getRightCategoryId() {
264 return rightCategoryId;
265 }
266
267
268
273 public void setRightCategoryId(long rightCategoryId) {
274 this.rightCategoryId = rightCategoryId;
275 }
276
277
278
283 public java.lang.String getTitle() {
284 return title;
285 }
286
287
288
293 public void setTitle(java.lang.String title) {
294 this.title = title;
295 }
296
297
298
303 public long getUserId() {
304 return userId;
305 }
306
307
308
313 public void setUserId(long userId) {
314 this.userId = userId;
315 }
316
317
318
323 public java.lang.String getUserName() {
324 return userName;
325 }
326
327
328
333 public void setUserName(java.lang.String userName) {
334 this.userName = userName;
335 }
336
337
338
343 public java.lang.String getUuid() {
344 return uuid;
345 }
346
347
348
353 public void setUuid(java.lang.String uuid) {
354 this.uuid = uuid;
355 }
356
357
358
363 public long getVocabularyId() {
364 return vocabularyId;
365 }
366
367
368
373 public void setVocabularyId(long vocabularyId) {
374 this.vocabularyId = vocabularyId;
375 }
376
377 private java.lang.Object __equalsCalc = null;
378 public synchronized boolean equals(java.lang.Object obj) {
379 if (!(obj instanceof AssetCategorySoap)) return false;
380 AssetCategorySoap other = (AssetCategorySoap) obj;
381 if (obj == null) return false;
382 if (this == obj) return true;
383 if (__equalsCalc != null) {
384 return (__equalsCalc == obj);
385 }
386 __equalsCalc = obj;
387 boolean _equals;
388 _equals = true &&
389 this.categoryId == other.getCategoryId() &&
390 this.companyId == other.getCompanyId() &&
391 ((this.createDate==null && other.getCreateDate()==null) ||
392 (this.createDate!=null &&
393 this.createDate.equals(other.getCreateDate()))) &&
394 this.groupId == other.getGroupId() &&
395 this.leftCategoryId == other.getLeftCategoryId() &&
396 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
397 (this.modifiedDate!=null &&
398 this.modifiedDate.equals(other.getModifiedDate()))) &&
399 ((this.name==null && other.getName()==null) ||
400 (this.name!=null &&
401 this.name.equals(other.getName()))) &&
402 this.parentCategoryId == other.getParentCategoryId() &&
403 this.primaryKey == other.getPrimaryKey() &&
404 this.rightCategoryId == other.getRightCategoryId() &&
405 ((this.title==null && other.getTitle()==null) ||
406 (this.title!=null &&
407 this.title.equals(other.getTitle()))) &&
408 this.userId == other.getUserId() &&
409 ((this.userName==null && other.getUserName()==null) ||
410 (this.userName!=null &&
411 this.userName.equals(other.getUserName()))) &&
412 ((this.uuid==null && other.getUuid()==null) ||
413 (this.uuid!=null &&
414 this.uuid.equals(other.getUuid()))) &&
415 this.vocabularyId == other.getVocabularyId();
416 __equalsCalc = null;
417 return _equals;
418 }
419
420 private boolean __hashCodeCalc = false;
421 public synchronized int hashCode() {
422 if (__hashCodeCalc) {
423 return 0;
424 }
425 __hashCodeCalc = true;
426 int _hashCode = 1;
427 _hashCode += new Long(getCategoryId()).hashCode();
428 _hashCode += new Long(getCompanyId()).hashCode();
429 if (getCreateDate() != null) {
430 _hashCode += getCreateDate().hashCode();
431 }
432 _hashCode += new Long(getGroupId()).hashCode();
433 _hashCode += new Long(getLeftCategoryId()).hashCode();
434 if (getModifiedDate() != null) {
435 _hashCode += getModifiedDate().hashCode();
436 }
437 if (getName() != null) {
438 _hashCode += getName().hashCode();
439 }
440 _hashCode += new Long(getParentCategoryId()).hashCode();
441 _hashCode += new Long(getPrimaryKey()).hashCode();
442 _hashCode += new Long(getRightCategoryId()).hashCode();
443 if (getTitle() != null) {
444 _hashCode += getTitle().hashCode();
445 }
446 _hashCode += new Long(getUserId()).hashCode();
447 if (getUserName() != null) {
448 _hashCode += getUserName().hashCode();
449 }
450 if (getUuid() != null) {
451 _hashCode += getUuid().hashCode();
452 }
453 _hashCode += new Long(getVocabularyId()).hashCode();
454 __hashCodeCalc = false;
455 return _hashCode;
456 }
457
458 private static org.apache.axis.description.TypeDesc typeDesc =
460 new org.apache.axis.description.TypeDesc(AssetCategorySoap.class, true);
461
462 static {
463 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.asset.portlet.liferay.com", "AssetCategorySoap"));
464 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
465 elemField.setFieldName("categoryId");
466 elemField.setXmlName(new javax.xml.namespace.QName("", "categoryId"));
467 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
468 elemField.setNillable(false);
469 typeDesc.addFieldDesc(elemField);
470 elemField = new org.apache.axis.description.ElementDesc();
471 elemField.setFieldName("companyId");
472 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
473 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
474 elemField.setNillable(false);
475 typeDesc.addFieldDesc(elemField);
476 elemField = new org.apache.axis.description.ElementDesc();
477 elemField.setFieldName("createDate");
478 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
479 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
480 elemField.setNillable(true);
481 typeDesc.addFieldDesc(elemField);
482 elemField = new org.apache.axis.description.ElementDesc();
483 elemField.setFieldName("groupId");
484 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
485 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
486 elemField.setNillable(false);
487 typeDesc.addFieldDesc(elemField);
488 elemField = new org.apache.axis.description.ElementDesc();
489 elemField.setFieldName("leftCategoryId");
490 elemField.setXmlName(new javax.xml.namespace.QName("", "leftCategoryId"));
491 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
492 elemField.setNillable(false);
493 typeDesc.addFieldDesc(elemField);
494 elemField = new org.apache.axis.description.ElementDesc();
495 elemField.setFieldName("modifiedDate");
496 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
497 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
498 elemField.setNillable(true);
499 typeDesc.addFieldDesc(elemField);
500 elemField = new org.apache.axis.description.ElementDesc();
501 elemField.setFieldName("name");
502 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
503 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
504 elemField.setNillable(true);
505 typeDesc.addFieldDesc(elemField);
506 elemField = new org.apache.axis.description.ElementDesc();
507 elemField.setFieldName("parentCategoryId");
508 elemField.setXmlName(new javax.xml.namespace.QName("", "parentCategoryId"));
509 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
510 elemField.setNillable(false);
511 typeDesc.addFieldDesc(elemField);
512 elemField = new org.apache.axis.description.ElementDesc();
513 elemField.setFieldName("primaryKey");
514 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
515 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
516 elemField.setNillable(false);
517 typeDesc.addFieldDesc(elemField);
518 elemField = new org.apache.axis.description.ElementDesc();
519 elemField.setFieldName("rightCategoryId");
520 elemField.setXmlName(new javax.xml.namespace.QName("", "rightCategoryId"));
521 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
522 elemField.setNillable(false);
523 typeDesc.addFieldDesc(elemField);
524 elemField = new org.apache.axis.description.ElementDesc();
525 elemField.setFieldName("title");
526 elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
527 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
528 elemField.setNillable(true);
529 typeDesc.addFieldDesc(elemField);
530 elemField = new org.apache.axis.description.ElementDesc();
531 elemField.setFieldName("userId");
532 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
533 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
534 elemField.setNillable(false);
535 typeDesc.addFieldDesc(elemField);
536 elemField = new org.apache.axis.description.ElementDesc();
537 elemField.setFieldName("userName");
538 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
539 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
540 elemField.setNillable(true);
541 typeDesc.addFieldDesc(elemField);
542 elemField = new org.apache.axis.description.ElementDesc();
543 elemField.setFieldName("uuid");
544 elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
545 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
546 elemField.setNillable(true);
547 typeDesc.addFieldDesc(elemField);
548 elemField = new org.apache.axis.description.ElementDesc();
549 elemField.setFieldName("vocabularyId");
550 elemField.setXmlName(new javax.xml.namespace.QName("", "vocabularyId"));
551 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
552 elemField.setNillable(false);
553 typeDesc.addFieldDesc(elemField);
554 }
555
556
559 public static org.apache.axis.description.TypeDesc getTypeDesc() {
560 return typeDesc;
561 }
562
563
566 public static org.apache.axis.encoding.Serializer getSerializer(
567 java.lang.String mechType,
568 java.lang.Class _javaType,
569 javax.xml.namespace.QName _xmlType) {
570 return
571 new org.apache.axis.encoding.ser.BeanSerializer(
572 _javaType, _xmlType, typeDesc);
573 }
574
575
578 public static org.apache.axis.encoding.Deserializer getDeserializer(
579 java.lang.String mechType,
580 java.lang.Class _javaType,
581 javax.xml.namespace.QName _xmlType) {
582 return
583 new org.apache.axis.encoding.ser.BeanDeserializer(
584 _javaType, _xmlType, typeDesc);
585 }
586
587 }
588