1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.krad.bo; |
17 | |
|
18 | |
import org.hibernate.annotations.Type; |
19 | |
|
20 | |
import javax.persistence.Column; |
21 | |
import javax.persistence.Entity; |
22 | |
import javax.persistence.Id; |
23 | |
import javax.persistence.IdClass; |
24 | |
import javax.persistence.Lob; |
25 | |
import javax.persistence.Table; |
26 | |
import java.sql.Timestamp; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
@IdClass(org.kuali.rice.krad.bo.SessionDocumentId.class) |
32 | |
@Entity |
33 | |
@Table(name="KRNS_SESN_DOC_T") |
34 | 7 | public class SessionDocument extends PersistableBusinessObjectBase{ |
35 | |
|
36 | |
private static final long serialVersionUID = 2866566562262830639L; |
37 | |
|
38 | |
@Id |
39 | |
protected String documentNumber; |
40 | |
@Id |
41 | |
protected String sessionId; |
42 | |
@Column(name="LAST_UPDT_DT") |
43 | |
protected Timestamp lastUpdatedDate; |
44 | |
@Lob |
45 | |
@Column(name="SERIALZD_DOC_FRM") |
46 | |
protected byte[] serializedDocumentForm; |
47 | 7 | @Type(type="yes_no") |
48 | |
@Column(name="CONTENT_ENCRYPTED_IND") |
49 | |
protected boolean encrypted = false; |
50 | |
@Id |
51 | |
protected String principalId; |
52 | |
@Id |
53 | |
protected String ipAddress; |
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
public byte[] getSerializedDocumentForm() { |
60 | 1 | return this.serializedDocumentForm; |
61 | |
} |
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | |
public void setSerializedDocumentForm(byte[] serializedDocumentForm) { |
67 | 1 | this.serializedDocumentForm = serializedDocumentForm; |
68 | 1 | } |
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
public String getSessionId() { |
75 | 1 | return this.sessionId; |
76 | |
} |
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
public void setSessionId(String sessionId) { |
82 | 1 | this.sessionId = sessionId; |
83 | 1 | } |
84 | |
|
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | |
public Timestamp getLastUpdatedDate() { |
90 | 1 | return this.lastUpdatedDate; |
91 | |
} |
92 | |
|
93 | |
|
94 | |
|
95 | |
|
96 | |
public void setLastUpdatedDate(Timestamp lastUpdatedDate) { |
97 | 1 | this.lastUpdatedDate = lastUpdatedDate; |
98 | 1 | } |
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
public String getDocumentNumber() { |
104 | 1 | return this.documentNumber; |
105 | |
} |
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
public void setDocumentNumber(String documentNumber) { |
111 | 1 | this.documentNumber = documentNumber; |
112 | 1 | } |
113 | |
|
114 | |
|
115 | |
|
116 | |
|
117 | |
|
118 | |
|
119 | |
public String getPrincipalId() { |
120 | 1 | return this.principalId; |
121 | |
} |
122 | |
|
123 | |
|
124 | |
|
125 | |
|
126 | |
public void setPrincipalId(String principalId) { |
127 | 1 | this.principalId = principalId; |
128 | 1 | } |
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
public String getIpAddress() { |
134 | 1 | return this.ipAddress; |
135 | |
} |
136 | |
|
137 | |
|
138 | |
|
139 | |
|
140 | |
public void setIpAddress(String ipAddress) { |
141 | 1 | this.ipAddress = ipAddress; |
142 | 1 | } |
143 | |
|
144 | |
public boolean isEncrypted() { |
145 | 1 | return this.encrypted; |
146 | |
} |
147 | |
|
148 | |
public void setEncrypted(boolean encrypted) { |
149 | 1 | this.encrypted = encrypted; |
150 | 1 | } |
151 | |
|
152 | |
} |