1
2
3
4
5
6
7
8
9 package com.hack23.cia.model.internal.application.system.impl;
10
11 import java.io.Serializable;
12 import java.util.Date;
13 import javax.persistence.Basic;
14 import javax.persistence.Column;
15 import javax.persistence.Entity;
16 import javax.persistence.EnumType;
17 import javax.persistence.Enumerated;
18 import javax.persistence.GeneratedValue;
19 import javax.persistence.GenerationType;
20 import javax.persistence.Id;
21 import javax.persistence.Inheritance;
22 import javax.persistence.InheritanceType;
23 import javax.persistence.Table;
24 import javax.persistence.Temporal;
25 import javax.persistence.TemporalType;
26 import javax.xml.bind.annotation.XmlAccessType;
27 import javax.xml.bind.annotation.XmlAccessorType;
28 import javax.xml.bind.annotation.XmlAttribute;
29 import javax.xml.bind.annotation.XmlElement;
30 import javax.xml.bind.annotation.XmlSchemaType;
31 import javax.xml.bind.annotation.XmlType;
32 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
33 import com.hack23.cia.model.common.api.ModelObject;
34 import org.jvnet.jaxb2_commons.lang.Equals;
35 import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
36 import org.jvnet.jaxb2_commons.lang.HashCode;
37 import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
38 import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
39 import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
40 import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
41 import org.jvnet.jaxb2_commons.lang.ToString;
42 import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
43 import org.jvnet.jaxb2_commons.locator.ObjectLocator;
44 import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
45 import org.w3._2001.xmlschema.Adapter1;
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79 @XmlAccessorType(XmlAccessType.FIELD)
80 @XmlType(name = "ApplicationActionEvent", propOrder = {
81 "modelObjectId",
82 "modelObjectVersion",
83 "applicationOperation",
84 "eventGroup",
85 "page",
86 "pageMode",
87 "elementId",
88 "actionName",
89 "sessionId",
90 "userId",
91 "errorMessage",
92 "applicationMessage",
93 "createdDate"
94 })
95 @Entity(name = "ApplicationActionEvent")
96 @Table(name = "APPLICATION_ACTION_EVENT")
97 @Inheritance(strategy = InheritanceType.JOINED)
98 public class ApplicationActionEvent
99 implements Serializable, ModelObject, Equals, HashCode, ToString
100 {
101
102 private final static long serialVersionUID = 1L;
103 protected Integer modelObjectId;
104 protected Integer modelObjectVersion;
105 @XmlSchemaType(name = "string")
106 protected ApplicationOperationType applicationOperation;
107 @XmlSchemaType(name = "string")
108 protected ApplicationEventGroup eventGroup;
109 protected String page;
110 protected String pageMode;
111 protected String elementId;
112 protected String actionName;
113 protected String sessionId;
114 protected String userId;
115 protected String errorMessage;
116 protected String applicationMessage;
117 @XmlElement(type = String.class)
118 @XmlJavaTypeAdapter(Adapter1 .class)
119 @XmlSchemaType(name = "dateTime")
120 protected Date createdDate;
121 @XmlAttribute(name = "Hjid")
122 protected Long hjid;
123
124
125
126
127
128
129
130
131
132 @Basic
133 @Column(name = "MODEL_OBJECT_ID", precision = 10, scale = 0)
134 public Integer getModelObjectId() {
135 return modelObjectId;
136 }
137
138
139
140
141
142
143
144
145
146 public void setModelObjectId(Integer value) {
147 this.modelObjectId = value;
148 }
149
150
151
152
153
154
155
156
157
158 @Basic
159 @Column(name = "MODEL_OBJECT_VERSION", precision = 10, scale = 0)
160 public Integer getModelObjectVersion() {
161 return modelObjectVersion;
162 }
163
164
165
166
167
168
169
170
171
172 public void setModelObjectVersion(Integer value) {
173 this.modelObjectVersion = value;
174 }
175
176
177
178
179
180
181
182
183
184 @Basic
185 @Column(name = "APPLICATION_OPERATION", length = 255)
186 @Enumerated(EnumType.STRING)
187 public ApplicationOperationType getApplicationOperation() {
188 return applicationOperation;
189 }
190
191
192
193
194
195
196
197
198
199 public void setApplicationOperation(ApplicationOperationType value) {
200 this.applicationOperation = value;
201 }
202
203
204
205
206
207
208
209
210
211 @Basic
212 @Column(name = "EVENT_GROUP", length = 255)
213 @Enumerated(EnumType.STRING)
214 public ApplicationEventGroup getEventGroup() {
215 return eventGroup;
216 }
217
218
219
220
221
222
223
224
225
226 public void setEventGroup(ApplicationEventGroup value) {
227 this.eventGroup = value;
228 }
229
230
231
232
233
234
235
236
237
238 @Basic
239 @Column(name = "PAGE", length = 255)
240 public String getPage() {
241 return page;
242 }
243
244
245
246
247
248
249
250
251
252 public void setPage(String value) {
253 this.page = value;
254 }
255
256
257
258
259
260
261
262
263
264 @Basic
265 @Column(name = "PAGE_MODE", length = 255)
266 public String getPageMode() {
267 return pageMode;
268 }
269
270
271
272
273
274
275
276
277
278 public void setPageMode(String value) {
279 this.pageMode = value;
280 }
281
282
283
284
285
286
287
288
289
290 @Basic
291 @Column(name = "ELEMENT_ID", length = 255)
292 public String getElementId() {
293 return elementId;
294 }
295
296
297
298
299
300
301
302
303
304 public void setElementId(String value) {
305 this.elementId = value;
306 }
307
308
309
310
311
312
313
314
315
316 @Basic
317 @Column(name = "ACTION_NAME", length = 255)
318 public String getActionName() {
319 return actionName;
320 }
321
322
323
324
325
326
327
328
329
330 public void setActionName(String value) {
331 this.actionName = value;
332 }
333
334
335
336
337
338
339
340
341
342 @Basic
343 @Column(name = "SESSION_ID", length = 255)
344 public String getSessionId() {
345 return sessionId;
346 }
347
348
349
350
351
352
353
354
355
356 public void setSessionId(String value) {
357 this.sessionId = value;
358 }
359
360
361
362
363
364
365
366
367
368 @Basic
369 @Column(name = "USER_ID", length = 255)
370 public String getUserId() {
371 return userId;
372 }
373
374
375
376
377
378
379
380
381
382 public void setUserId(String value) {
383 this.userId = value;
384 }
385
386
387
388
389
390
391
392
393
394 @Basic
395 @Column(name = "ERROR_MESSAGE", length = 8192)
396 public String getErrorMessage() {
397 return errorMessage;
398 }
399
400
401
402
403
404
405
406
407
408 public void setErrorMessage(String value) {
409 this.errorMessage = value;
410 }
411
412
413
414
415
416
417
418
419
420 @Basic
421 @Column(name = "APPLICATION_MESSAGE", length = 255)
422 public String getApplicationMessage() {
423 return applicationMessage;
424 }
425
426
427
428
429
430
431
432
433
434 public void setApplicationMessage(String value) {
435 this.applicationMessage = value;
436 }
437
438
439
440
441
442
443
444
445
446 @Basic
447 @Column(name = "CREATED_DATE")
448 @Temporal(TemporalType.TIMESTAMP)
449 public Date getCreatedDate() {
450 return createdDate;
451 }
452
453
454
455
456
457
458
459
460
461 public void setCreatedDate(Date value) {
462 this.createdDate = value;
463 }
464
465 public ApplicationActionEvent withModelObjectId(Integer value) {
466 setModelObjectId(value);
467 return this;
468 }
469
470 public ApplicationActionEvent withModelObjectVersion(Integer value) {
471 setModelObjectVersion(value);
472 return this;
473 }
474
475 public ApplicationActionEvent withApplicationOperation(ApplicationOperationType value) {
476 setApplicationOperation(value);
477 return this;
478 }
479
480 public ApplicationActionEvent withEventGroup(ApplicationEventGroup value) {
481 setEventGroup(value);
482 return this;
483 }
484
485 public ApplicationActionEvent withPage(String value) {
486 setPage(value);
487 return this;
488 }
489
490 public ApplicationActionEvent withPageMode(String value) {
491 setPageMode(value);
492 return this;
493 }
494
495 public ApplicationActionEvent withElementId(String value) {
496 setElementId(value);
497 return this;
498 }
499
500 public ApplicationActionEvent withActionName(String value) {
501 setActionName(value);
502 return this;
503 }
504
505 public ApplicationActionEvent withSessionId(String value) {
506 setSessionId(value);
507 return this;
508 }
509
510 public ApplicationActionEvent withUserId(String value) {
511 setUserId(value);
512 return this;
513 }
514
515 public ApplicationActionEvent withErrorMessage(String value) {
516 setErrorMessage(value);
517 return this;
518 }
519
520 public ApplicationActionEvent withApplicationMessage(String value) {
521 setApplicationMessage(value);
522 return this;
523 }
524
525 public ApplicationActionEvent withCreatedDate(Date value) {
526 setCreatedDate(value);
527 return this;
528 }
529
530 public String toString() {
531 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
532 final StringBuilder buffer = new StringBuilder();
533 append(null, buffer, strategy);
534 return buffer.toString();
535 }
536
537 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
538 strategy.appendStart(locator, this, buffer);
539 appendFields(locator, buffer, strategy);
540 strategy.appendEnd(locator, this, buffer);
541 return buffer;
542 }
543
544 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
545 {
546 Integer theModelObjectId;
547 theModelObjectId = this.getModelObjectId();
548 strategy.appendField(locator, this, "modelObjectId", buffer, theModelObjectId);
549 }
550 {
551 Integer theModelObjectVersion;
552 theModelObjectVersion = this.getModelObjectVersion();
553 strategy.appendField(locator, this, "modelObjectVersion", buffer, theModelObjectVersion);
554 }
555 {
556 ApplicationOperationType theApplicationOperation;
557 theApplicationOperation = this.getApplicationOperation();
558 strategy.appendField(locator, this, "applicationOperation", buffer, theApplicationOperation);
559 }
560 {
561 ApplicationEventGroup theEventGroup;
562 theEventGroup = this.getEventGroup();
563 strategy.appendField(locator, this, "eventGroup", buffer, theEventGroup);
564 }
565 {
566 String thePage;
567 thePage = this.getPage();
568 strategy.appendField(locator, this, "page", buffer, thePage);
569 }
570 {
571 String thePageMode;
572 thePageMode = this.getPageMode();
573 strategy.appendField(locator, this, "pageMode", buffer, thePageMode);
574 }
575 {
576 String theElementId;
577 theElementId = this.getElementId();
578 strategy.appendField(locator, this, "elementId", buffer, theElementId);
579 }
580 {
581 String theActionName;
582 theActionName = this.getActionName();
583 strategy.appendField(locator, this, "actionName", buffer, theActionName);
584 }
585 {
586 String theSessionId;
587 theSessionId = this.getSessionId();
588 strategy.appendField(locator, this, "sessionId", buffer, theSessionId);
589 }
590 {
591 String theUserId;
592 theUserId = this.getUserId();
593 strategy.appendField(locator, this, "userId", buffer, theUserId);
594 }
595 {
596 String theErrorMessage;
597 theErrorMessage = this.getErrorMessage();
598 strategy.appendField(locator, this, "errorMessage", buffer, theErrorMessage);
599 }
600 {
601 String theApplicationMessage;
602 theApplicationMessage = this.getApplicationMessage();
603 strategy.appendField(locator, this, "applicationMessage", buffer, theApplicationMessage);
604 }
605 {
606 Date theCreatedDate;
607 theCreatedDate = this.getCreatedDate();
608 strategy.appendField(locator, this, "createdDate", buffer, theCreatedDate);
609 }
610 return buffer;
611 }
612
613
614
615
616
617
618
619
620
621 @Id
622 @Column(name = "HJID")
623 @GeneratedValue(strategy = GenerationType.AUTO)
624 public Long getHjid() {
625 return hjid;
626 }
627
628
629
630
631
632
633
634
635
636 public void setHjid(Long value) {
637 this.hjid = value;
638 }
639
640 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
641 if ((object == null)||(this.getClass()!= object.getClass())) {
642 return false;
643 }
644 if (this == object) {
645 return true;
646 }
647 final ApplicationActionEvent that = ((ApplicationActionEvent) object);
648 {
649 Integer lhsModelObjectId;
650 lhsModelObjectId = this.getModelObjectId();
651 Integer rhsModelObjectId;
652 rhsModelObjectId = that.getModelObjectId();
653 if (!strategy.equals(LocatorUtils.property(thisLocator, "modelObjectId", lhsModelObjectId), LocatorUtils.property(thatLocator, "modelObjectId", rhsModelObjectId), lhsModelObjectId, rhsModelObjectId)) {
654 return false;
655 }
656 }
657 {
658 Integer lhsModelObjectVersion;
659 lhsModelObjectVersion = this.getModelObjectVersion();
660 Integer rhsModelObjectVersion;
661 rhsModelObjectVersion = that.getModelObjectVersion();
662 if (!strategy.equals(LocatorUtils.property(thisLocator, "modelObjectVersion", lhsModelObjectVersion), LocatorUtils.property(thatLocator, "modelObjectVersion", rhsModelObjectVersion), lhsModelObjectVersion, rhsModelObjectVersion)) {
663 return false;
664 }
665 }
666 {
667 ApplicationOperationType lhsApplicationOperation;
668 lhsApplicationOperation = this.getApplicationOperation();
669 ApplicationOperationType rhsApplicationOperation;
670 rhsApplicationOperation = that.getApplicationOperation();
671 if (!strategy.equals(LocatorUtils.property(thisLocator, "applicationOperation", lhsApplicationOperation), LocatorUtils.property(thatLocator, "applicationOperation", rhsApplicationOperation), lhsApplicationOperation, rhsApplicationOperation)) {
672 return false;
673 }
674 }
675 {
676 ApplicationEventGroup lhsEventGroup;
677 lhsEventGroup = this.getEventGroup();
678 ApplicationEventGroup rhsEventGroup;
679 rhsEventGroup = that.getEventGroup();
680 if (!strategy.equals(LocatorUtils.property(thisLocator, "eventGroup", lhsEventGroup), LocatorUtils.property(thatLocator, "eventGroup", rhsEventGroup), lhsEventGroup, rhsEventGroup)) {
681 return false;
682 }
683 }
684 {
685 String lhsPage;
686 lhsPage = this.getPage();
687 String rhsPage;
688 rhsPage = that.getPage();
689 if (!strategy.equals(LocatorUtils.property(thisLocator, "page", lhsPage), LocatorUtils.property(thatLocator, "page", rhsPage), lhsPage, rhsPage)) {
690 return false;
691 }
692 }
693 {
694 String lhsPageMode;
695 lhsPageMode = this.getPageMode();
696 String rhsPageMode;
697 rhsPageMode = that.getPageMode();
698 if (!strategy.equals(LocatorUtils.property(thisLocator, "pageMode", lhsPageMode), LocatorUtils.property(thatLocator, "pageMode", rhsPageMode), lhsPageMode, rhsPageMode)) {
699 return false;
700 }
701 }
702 {
703 String lhsElementId;
704 lhsElementId = this.getElementId();
705 String rhsElementId;
706 rhsElementId = that.getElementId();
707 if (!strategy.equals(LocatorUtils.property(thisLocator, "elementId", lhsElementId), LocatorUtils.property(thatLocator, "elementId", rhsElementId), lhsElementId, rhsElementId)) {
708 return false;
709 }
710 }
711 {
712 String lhsActionName;
713 lhsActionName = this.getActionName();
714 String rhsActionName;
715 rhsActionName = that.getActionName();
716 if (!strategy.equals(LocatorUtils.property(thisLocator, "actionName", lhsActionName), LocatorUtils.property(thatLocator, "actionName", rhsActionName), lhsActionName, rhsActionName)) {
717 return false;
718 }
719 }
720 {
721 String lhsSessionId;
722 lhsSessionId = this.getSessionId();
723 String rhsSessionId;
724 rhsSessionId = that.getSessionId();
725 if (!strategy.equals(LocatorUtils.property(thisLocator, "sessionId", lhsSessionId), LocatorUtils.property(thatLocator, "sessionId", rhsSessionId), lhsSessionId, rhsSessionId)) {
726 return false;
727 }
728 }
729 {
730 String lhsUserId;
731 lhsUserId = this.getUserId();
732 String rhsUserId;
733 rhsUserId = that.getUserId();
734 if (!strategy.equals(LocatorUtils.property(thisLocator, "userId", lhsUserId), LocatorUtils.property(thatLocator, "userId", rhsUserId), lhsUserId, rhsUserId)) {
735 return false;
736 }
737 }
738 {
739 String lhsErrorMessage;
740 lhsErrorMessage = this.getErrorMessage();
741 String rhsErrorMessage;
742 rhsErrorMessage = that.getErrorMessage();
743 if (!strategy.equals(LocatorUtils.property(thisLocator, "errorMessage", lhsErrorMessage), LocatorUtils.property(thatLocator, "errorMessage", rhsErrorMessage), lhsErrorMessage, rhsErrorMessage)) {
744 return false;
745 }
746 }
747 {
748 String lhsApplicationMessage;
749 lhsApplicationMessage = this.getApplicationMessage();
750 String rhsApplicationMessage;
751 rhsApplicationMessage = that.getApplicationMessage();
752 if (!strategy.equals(LocatorUtils.property(thisLocator, "applicationMessage", lhsApplicationMessage), LocatorUtils.property(thatLocator, "applicationMessage", rhsApplicationMessage), lhsApplicationMessage, rhsApplicationMessage)) {
753 return false;
754 }
755 }
756 {
757 Date lhsCreatedDate;
758 lhsCreatedDate = this.getCreatedDate();
759 Date rhsCreatedDate;
760 rhsCreatedDate = that.getCreatedDate();
761 if (!strategy.equals(LocatorUtils.property(thisLocator, "createdDate", lhsCreatedDate), LocatorUtils.property(thatLocator, "createdDate", rhsCreatedDate), lhsCreatedDate, rhsCreatedDate)) {
762 return false;
763 }
764 }
765 return true;
766 }
767
768 public boolean equals(Object object) {
769 final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
770 return equals(null, null, object, strategy);
771 }
772
773 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
774 int currentHashCode = 1;
775 {
776 Integer theModelObjectId;
777 theModelObjectId = this.getModelObjectId();
778 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modelObjectId", theModelObjectId), currentHashCode, theModelObjectId);
779 }
780 {
781 Integer theModelObjectVersion;
782 theModelObjectVersion = this.getModelObjectVersion();
783 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modelObjectVersion", theModelObjectVersion), currentHashCode, theModelObjectVersion);
784 }
785 {
786 ApplicationOperationType theApplicationOperation;
787 theApplicationOperation = this.getApplicationOperation();
788 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "applicationOperation", theApplicationOperation), currentHashCode, theApplicationOperation);
789 }
790 {
791 ApplicationEventGroup theEventGroup;
792 theEventGroup = this.getEventGroup();
793 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eventGroup", theEventGroup), currentHashCode, theEventGroup);
794 }
795 {
796 String thePage;
797 thePage = this.getPage();
798 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "page", thePage), currentHashCode, thePage);
799 }
800 {
801 String thePageMode;
802 thePageMode = this.getPageMode();
803 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pageMode", thePageMode), currentHashCode, thePageMode);
804 }
805 {
806 String theElementId;
807 theElementId = this.getElementId();
808 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "elementId", theElementId), currentHashCode, theElementId);
809 }
810 {
811 String theActionName;
812 theActionName = this.getActionName();
813 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "actionName", theActionName), currentHashCode, theActionName);
814 }
815 {
816 String theSessionId;
817 theSessionId = this.getSessionId();
818 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sessionId", theSessionId), currentHashCode, theSessionId);
819 }
820 {
821 String theUserId;
822 theUserId = this.getUserId();
823 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "userId", theUserId), currentHashCode, theUserId);
824 }
825 {
826 String theErrorMessage;
827 theErrorMessage = this.getErrorMessage();
828 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errorMessage", theErrorMessage), currentHashCode, theErrorMessage);
829 }
830 {
831 String theApplicationMessage;
832 theApplicationMessage = this.getApplicationMessage();
833 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "applicationMessage", theApplicationMessage), currentHashCode, theApplicationMessage);
834 }
835 {
836 Date theCreatedDate;
837 theCreatedDate = this.getCreatedDate();
838 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createdDate", theCreatedDate), currentHashCode, theCreatedDate);
839 }
840 return currentHashCode;
841 }
842
843 public int hashCode() {
844 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
845 return this.hashCode(null, strategy);
846 }
847
848 }