1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ksb.messaging.bam;
17
18 import org.hibernate.annotations.GenericGenerator;
19 import org.hibernate.annotations.Parameter;
20 import org.kuali.rice.ksb.api.messaging.AsynchronousCallback;
21
22 import javax.persistence.Basic;
23 import javax.persistence.CascadeType;
24 import javax.persistence.Column;
25 import javax.persistence.Entity;
26 import javax.persistence.FetchType;
27 import javax.persistence.GeneratedValue;
28 import javax.persistence.Id;
29 import javax.persistence.Lob;
30 import javax.persistence.OneToMany;
31 import javax.persistence.Table;
32 import javax.persistence.Transient;
33 import java.io.Serializable;
34 import java.sql.Timestamp;
35 import java.util.ArrayList;
36 import java.util.List;
37
38
39
40
41
42
43
44 @Entity
45 @Table(name="KRSB_BAM_T")
46
47 public class BAMTargetEntry implements Serializable {
48
49 private static final long serialVersionUID = -8376674801367598316L;
50
51 @Id
52 @GeneratedValue(generator="KRSB_BAM_S")
53 @GenericGenerator(name="KRSB_BAM_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
54 @Parameter(name="sequence_name",value="KRSB_BAM_S"),
55 @Parameter(name="value_column",value="id")
56 })
57 @Column(name="BAM_ID")
58 private Long bamId;
59 @Column(name="SVC_NM")
60 private String serviceName;
61 @Column(name="MTHD_NM")
62 private String methodName;
63 @Column(name="THRD_NM")
64 private String threadName;
65 @Column(name="CALL_DT")
66 private Timestamp callDate;
67 @Column(name="SVC_URL")
68 private String serviceURL;
69 @Column(name="TGT_TO_STR")
70 private String targetToString;
71 @Column(name="EXCPN_TO_STR")
72 private String exceptionToString;
73 @Lob
74 @Basic(fetch=FetchType.LAZY)
75 @Column(name="EXCPN_MSG", length=4000)
76 private String exceptionMessage;
77 @Column(name="SRVR_IND")
78 private Boolean serverInvocation;
79 @OneToMany(cascade=CascadeType.ALL, mappedBy="bamParamId")
80 private List<BAMParam> bamParams = new ArrayList<BAMParam>();
81
82
83 @Transient
84 private AsynchronousCallback callback;
85
86 public void addBamParam(BAMParam bamParam) {
87 this.bamParams.add(bamParam);
88 }
89 public String getExceptionToString() {
90 return this.exceptionToString;
91 }
92 public void setExceptionToString(String exceptionToString) {
93 this.exceptionToString = exceptionToString;
94 }
95 public String getServiceName() {
96 return this.serviceName;
97 }
98 public void setServiceName(String serviceName) {
99 this.serviceName = serviceName;
100 }
101 public String getServiceURL() {
102 return this.serviceURL;
103 }
104 public void setServiceURL(String serviceURL) {
105 this.serviceURL = serviceURL;
106 }
107 public String getTargetToString() {
108 return this.targetToString;
109 }
110 public void setTargetToString(String targetToString) {
111 this.targetToString = targetToString;
112 }
113 public Long getBamId() {
114 return this.bamId;
115 }
116 public void setBamId(Long bamId) {
117 this.bamId = bamId;
118 }
119 public String getExceptionMessage() {
120 return this.exceptionMessage;
121 }
122 public void setExceptionMessage(String exceptionMessage) {
123 this.exceptionMessage = exceptionMessage;
124 }
125 public Boolean getServerInvocation() {
126 return this.serverInvocation;
127 }
128 public void setServerInvocation(Boolean clientInvocation) {
129 this.serverInvocation = clientInvocation;
130 }
131 public Timestamp getCallDate() {
132 return this.callDate;
133 }
134 public void setCallDate(Timestamp callDate) {
135 this.callDate = callDate;
136 }
137 public String getMethodName() {
138 return this.methodName;
139 }
140 public void setMethodName(String methodName) {
141 this.methodName = methodName;
142 }
143 public String getThreadName() {
144 return this.threadName;
145 }
146 public void setThreadName(String threadName) {
147 this.threadName = threadName;
148 }
149 public List<BAMParam> getBamParams() {
150 return this.bamParams;
151 }
152 public void setBamParams(List<BAMParam> bamParams) {
153 this.bamParams = bamParams;
154 }
155 public AsynchronousCallback getCallback() {
156 return this.callback;
157 }
158 public void setCallback(AsynchronousCallback callback) {
159 this.callback = callback;
160 }
161 }
162