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