1
7
8 package com.liferay.client.portlet.journal.model;
9
10 public class JournalTemplateSoap implements java.io.Serializable {
11 private long companyId;
12
13 private java.util.Calendar createDate;
14
15 private java.lang.String description;
16
17 private long groupId;
18
19 private long id;
20
21 private java.lang.String langType;
22
23 private java.util.Calendar modifiedDate;
24
25 private java.lang.String name;
26
27 private long primaryKey;
28
29 private boolean smallImage;
30
31 private long smallImageId;
32
33 private java.lang.String smallImageURL;
34
35 private java.lang.String structureId;
36
37 private java.lang.String templateId;
38
39 private long userId;
40
41 private java.lang.String userName;
42
43 private java.lang.String xsl;
44
45 public JournalTemplateSoap() {
46 }
47
48 public JournalTemplateSoap(
49 long companyId,
50 java.util.Calendar createDate,
51 java.lang.String description,
52 long groupId,
53 long id,
54 java.lang.String langType,
55 java.util.Calendar modifiedDate,
56 java.lang.String name,
57 long primaryKey,
58 boolean smallImage,
59 long smallImageId,
60 java.lang.String smallImageURL,
61 java.lang.String structureId,
62 java.lang.String templateId,
63 long userId,
64 java.lang.String userName,
65 java.lang.String xsl) {
66 this.companyId = companyId;
67 this.createDate = createDate;
68 this.description = description;
69 this.groupId = groupId;
70 this.id = id;
71 this.langType = langType;
72 this.modifiedDate = modifiedDate;
73 this.name = name;
74 this.primaryKey = primaryKey;
75 this.smallImage = smallImage;
76 this.smallImageId = smallImageId;
77 this.smallImageURL = smallImageURL;
78 this.structureId = structureId;
79 this.templateId = templateId;
80 this.userId = userId;
81 this.userName = userName;
82 this.xsl = xsl;
83 }
84
85
86
91 public long getCompanyId() {
92 return companyId;
93 }
94
95
96
101 public void setCompanyId(long companyId) {
102 this.companyId = companyId;
103 }
104
105
106
111 public java.util.Calendar getCreateDate() {
112 return createDate;
113 }
114
115
116
121 public void setCreateDate(java.util.Calendar createDate) {
122 this.createDate = createDate;
123 }
124
125
126
131 public java.lang.String getDescription() {
132 return description;
133 }
134
135
136
141 public void setDescription(java.lang.String description) {
142 this.description = description;
143 }
144
145
146
151 public long getGroupId() {
152 return groupId;
153 }
154
155
156
161 public void setGroupId(long groupId) {
162 this.groupId = groupId;
163 }
164
165
166
171 public long getId() {
172 return id;
173 }
174
175
176
181 public void setId(long id) {
182 this.id = id;
183 }
184
185
186
191 public java.lang.String getLangType() {
192 return langType;
193 }
194
195
196
201 public void setLangType(java.lang.String langType) {
202 this.langType = langType;
203 }
204
205
206
211 public java.util.Calendar getModifiedDate() {
212 return modifiedDate;
213 }
214
215
216
221 public void setModifiedDate(java.util.Calendar modifiedDate) {
222 this.modifiedDate = modifiedDate;
223 }
224
225
226
231 public java.lang.String getName() {
232 return name;
233 }
234
235
236
241 public void setName(java.lang.String name) {
242 this.name = name;
243 }
244
245
246
251 public long getPrimaryKey() {
252 return primaryKey;
253 }
254
255
256
261 public void setPrimaryKey(long primaryKey) {
262 this.primaryKey = primaryKey;
263 }
264
265
266
271 public boolean isSmallImage() {
272 return smallImage;
273 }
274
275
276
281 public void setSmallImage(boolean smallImage) {
282 this.smallImage = smallImage;
283 }
284
285
286
291 public long getSmallImageId() {
292 return smallImageId;
293 }
294
295
296
301 public void setSmallImageId(long smallImageId) {
302 this.smallImageId = smallImageId;
303 }
304
305
306
311 public java.lang.String getSmallImageURL() {
312 return smallImageURL;
313 }
314
315
316
321 public void setSmallImageURL(java.lang.String smallImageURL) {
322 this.smallImageURL = smallImageURL;
323 }
324
325
326
331 public java.lang.String getStructureId() {
332 return structureId;
333 }
334
335
336
341 public void setStructureId(java.lang.String structureId) {
342 this.structureId = structureId;
343 }
344
345
346
351 public java.lang.String getTemplateId() {
352 return templateId;
353 }
354
355
356
361 public void setTemplateId(java.lang.String templateId) {
362 this.templateId = templateId;
363 }
364
365
366
371 public long getUserId() {
372 return userId;
373 }
374
375
376
381 public void setUserId(long userId) {
382 this.userId = userId;
383 }
384
385
386
391 public java.lang.String getUserName() {
392 return userName;
393 }
394
395
396
401 public void setUserName(java.lang.String userName) {
402 this.userName = userName;
403 }
404
405
406
411 public java.lang.String getXsl() {
412 return xsl;
413 }
414
415
416
421 public void setXsl(java.lang.String xsl) {
422 this.xsl = xsl;
423 }
424
425 private java.lang.Object __equalsCalc = null;
426 public synchronized boolean equals(java.lang.Object obj) {
427 if (!(obj instanceof JournalTemplateSoap)) return false;
428 JournalTemplateSoap other = (JournalTemplateSoap) obj;
429 if (obj == null) return false;
430 if (this == obj) return true;
431 if (__equalsCalc != null) {
432 return (__equalsCalc == obj);
433 }
434 __equalsCalc = obj;
435 boolean _equals;
436 _equals = true &&
437 this.companyId == other.getCompanyId() &&
438 ((this.createDate==null && other.getCreateDate()==null) ||
439 (this.createDate!=null &&
440 this.createDate.equals(other.getCreateDate()))) &&
441 ((this.description==null && other.getDescription()==null) ||
442 (this.description!=null &&
443 this.description.equals(other.getDescription()))) &&
444 this.groupId == other.getGroupId() &&
445 this.id == other.getId() &&
446 ((this.langType==null && other.getLangType()==null) ||
447 (this.langType!=null &&
448 this.langType.equals(other.getLangType()))) &&
449 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
450 (this.modifiedDate!=null &&
451 this.modifiedDate.equals(other.getModifiedDate()))) &&
452 ((this.name==null && other.getName()==null) ||
453 (this.name!=null &&
454 this.name.equals(other.getName()))) &&
455 this.primaryKey == other.getPrimaryKey() &&
456 this.smallImage == other.isSmallImage() &&
457 this.smallImageId == other.getSmallImageId() &&
458 ((this.smallImageURL==null && other.getSmallImageURL()==null) ||
459 (this.smallImageURL!=null &&
460 this.smallImageURL.equals(other.getSmallImageURL()))) &&
461 ((this.structureId==null && other.getStructureId()==null) ||
462 (this.structureId!=null &&
463 this.structureId.equals(other.getStructureId()))) &&
464 ((this.templateId==null && other.getTemplateId()==null) ||
465 (this.templateId!=null &&
466 this.templateId.equals(other.getTemplateId()))) &&
467 this.userId == other.getUserId() &&
468 ((this.userName==null && other.getUserName()==null) ||
469 (this.userName!=null &&
470 this.userName.equals(other.getUserName()))) &&
471 ((this.xsl==null && other.getXsl()==null) ||
472 (this.xsl!=null &&
473 this.xsl.equals(other.getXsl())));
474 __equalsCalc = null;
475 return _equals;
476 }
477
478 private boolean __hashCodeCalc = false;
479 public synchronized int hashCode() {
480 if (__hashCodeCalc) {
481 return 0;
482 }
483 __hashCodeCalc = true;
484 int _hashCode = 1;
485 _hashCode += new Long(getCompanyId()).hashCode();
486 if (getCreateDate() != null) {
487 _hashCode += getCreateDate().hashCode();
488 }
489 if (getDescription() != null) {
490 _hashCode += getDescription().hashCode();
491 }
492 _hashCode += new Long(getGroupId()).hashCode();
493 _hashCode += new Long(getId()).hashCode();
494 if (getLangType() != null) {
495 _hashCode += getLangType().hashCode();
496 }
497 if (getModifiedDate() != null) {
498 _hashCode += getModifiedDate().hashCode();
499 }
500 if (getName() != null) {
501 _hashCode += getName().hashCode();
502 }
503 _hashCode += new Long(getPrimaryKey()).hashCode();
504 _hashCode += (isSmallImage() ? Boolean.TRUE : Boolean.FALSE).hashCode();
505 _hashCode += new Long(getSmallImageId()).hashCode();
506 if (getSmallImageURL() != null) {
507 _hashCode += getSmallImageURL().hashCode();
508 }
509 if (getStructureId() != null) {
510 _hashCode += getStructureId().hashCode();
511 }
512 if (getTemplateId() != null) {
513 _hashCode += getTemplateId().hashCode();
514 }
515 _hashCode += new Long(getUserId()).hashCode();
516 if (getUserName() != null) {
517 _hashCode += getUserName().hashCode();
518 }
519 if (getXsl() != null) {
520 _hashCode += getXsl().hashCode();
521 }
522 __hashCodeCalc = false;
523 return _hashCode;
524 }
525
526 private static org.apache.axis.description.TypeDesc typeDesc =
528 new org.apache.axis.description.TypeDesc(JournalTemplateSoap.class, true);
529
530 static {
531 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.journal.portlet.liferay.com", "JournalTemplateSoap"));
532 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
533 elemField.setFieldName("companyId");
534 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
535 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
536 elemField.setNillable(false);
537 typeDesc.addFieldDesc(elemField);
538 elemField = new org.apache.axis.description.ElementDesc();
539 elemField.setFieldName("createDate");
540 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
541 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
542 elemField.setNillable(true);
543 typeDesc.addFieldDesc(elemField);
544 elemField = new org.apache.axis.description.ElementDesc();
545 elemField.setFieldName("description");
546 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
547 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
548 elemField.setNillable(true);
549 typeDesc.addFieldDesc(elemField);
550 elemField = new org.apache.axis.description.ElementDesc();
551 elemField.setFieldName("groupId");
552 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
553 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
554 elemField.setNillable(false);
555 typeDesc.addFieldDesc(elemField);
556 elemField = new org.apache.axis.description.ElementDesc();
557 elemField.setFieldName("id");
558 elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
559 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
560 elemField.setNillable(false);
561 typeDesc.addFieldDesc(elemField);
562 elemField = new org.apache.axis.description.ElementDesc();
563 elemField.setFieldName("langType");
564 elemField.setXmlName(new javax.xml.namespace.QName("", "langType"));
565 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
566 elemField.setNillable(true);
567 typeDesc.addFieldDesc(elemField);
568 elemField = new org.apache.axis.description.ElementDesc();
569 elemField.setFieldName("modifiedDate");
570 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
571 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
572 elemField.setNillable(true);
573 typeDesc.addFieldDesc(elemField);
574 elemField = new org.apache.axis.description.ElementDesc();
575 elemField.setFieldName("name");
576 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
577 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
578 elemField.setNillable(true);
579 typeDesc.addFieldDesc(elemField);
580 elemField = new org.apache.axis.description.ElementDesc();
581 elemField.setFieldName("primaryKey");
582 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
583 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
584 elemField.setNillable(false);
585 typeDesc.addFieldDesc(elemField);
586 elemField = new org.apache.axis.description.ElementDesc();
587 elemField.setFieldName("smallImage");
588 elemField.setXmlName(new javax.xml.namespace.QName("", "smallImage"));
589 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
590 elemField.setNillable(false);
591 typeDesc.addFieldDesc(elemField);
592 elemField = new org.apache.axis.description.ElementDesc();
593 elemField.setFieldName("smallImageId");
594 elemField.setXmlName(new javax.xml.namespace.QName("", "smallImageId"));
595 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
596 elemField.setNillable(false);
597 typeDesc.addFieldDesc(elemField);
598 elemField = new org.apache.axis.description.ElementDesc();
599 elemField.setFieldName("smallImageURL");
600 elemField.setXmlName(new javax.xml.namespace.QName("", "smallImageURL"));
601 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
602 elemField.setNillable(true);
603 typeDesc.addFieldDesc(elemField);
604 elemField = new org.apache.axis.description.ElementDesc();
605 elemField.setFieldName("structureId");
606 elemField.setXmlName(new javax.xml.namespace.QName("", "structureId"));
607 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
608 elemField.setNillable(true);
609 typeDesc.addFieldDesc(elemField);
610 elemField = new org.apache.axis.description.ElementDesc();
611 elemField.setFieldName("templateId");
612 elemField.setXmlName(new javax.xml.namespace.QName("", "templateId"));
613 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
614 elemField.setNillable(true);
615 typeDesc.addFieldDesc(elemField);
616 elemField = new org.apache.axis.description.ElementDesc();
617 elemField.setFieldName("userId");
618 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
619 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
620 elemField.setNillable(false);
621 typeDesc.addFieldDesc(elemField);
622 elemField = new org.apache.axis.description.ElementDesc();
623 elemField.setFieldName("userName");
624 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
625 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
626 elemField.setNillable(true);
627 typeDesc.addFieldDesc(elemField);
628 elemField = new org.apache.axis.description.ElementDesc();
629 elemField.setFieldName("xsl");
630 elemField.setXmlName(new javax.xml.namespace.QName("", "xsl"));
631 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
632 elemField.setNillable(true);
633 typeDesc.addFieldDesc(elemField);
634 }
635
636
639 public static org.apache.axis.description.TypeDesc getTypeDesc() {
640 return typeDesc;
641 }
642
643
646 public static org.apache.axis.encoding.Serializer getSerializer(
647 java.lang.String mechType,
648 java.lang.Class _javaType,
649 javax.xml.namespace.QName _xmlType) {
650 return
651 new org.apache.axis.encoding.ser.BeanSerializer(
652 _javaType, _xmlType, typeDesc);
653 }
654
655
658 public static org.apache.axis.encoding.Deserializer getDeserializer(
659 java.lang.String mechType,
660 java.lang.Class _javaType,
661 javax.xml.namespace.QName _xmlType) {
662 return
663 new org.apache.axis.encoding.ser.BeanDeserializer(
664 _javaType, _xmlType, typeDesc);
665 }
666
667 }
668