Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SessionDocumentId |
|
| 1.0;1 |
1 | /** | |
2 | * Copyright 2005-2011 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.krad.bo; | |
17 | ||
18 | import org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase; | |
19 | ||
20 | import javax.persistence.Column; | |
21 | import javax.persistence.Id; | |
22 | ||
23 | /** | |
24 | * PK for SessionDocument. 'Cause we love the JPAness. | |
25 | * | |
26 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
27 | * | |
28 | */ | |
29 | public class SessionDocumentId extends CompositePrimaryKeyBase { | |
30 | @Id | |
31 | @Column(name="DOC_HDR_ID") | |
32 | protected String documentNumber; | |
33 | @Id | |
34 | @Column(name="SESN_DOC_ID") | |
35 | protected String sessionId; | |
36 | @Id | |
37 | @Column(name="PRNCPL_ID") | |
38 | protected String principalId; | |
39 | @Id | |
40 | @Column(name="IP_ADDR") | |
41 | protected String ipAddress; | |
42 | ||
43 | 0 | public SessionDocumentId() {} |
44 | ||
45 | 0 | public SessionDocumentId(String documentNumber, String sessionId, String principalId, String ipAddress) { |
46 | 0 | this.documentNumber = documentNumber; |
47 | 0 | this.sessionId = sessionId; |
48 | 0 | this.principalId = principalId; |
49 | 0 | this.ipAddress = ipAddress; |
50 | 0 | } |
51 | ||
52 | /** | |
53 | * @return the documentNumber | |
54 | */ | |
55 | public String getDocumentNumber() { | |
56 | 0 | return this.documentNumber; |
57 | } | |
58 | /** | |
59 | * @return the sessionId | |
60 | */ | |
61 | public String getSessionId() { | |
62 | 0 | return this.sessionId; |
63 | } | |
64 | /** | |
65 | * @return the principalId | |
66 | */ | |
67 | public String getPrincipalId() { | |
68 | 0 | return this.principalId; |
69 | } | |
70 | /** | |
71 | * @return the ipAddress | |
72 | */ | |
73 | public String getIpAddress() { | |
74 | 0 | return this.ipAddress; |
75 | } | |
76 | /** | |
77 | * @param documentNumber the documentNumber to set | |
78 | */ | |
79 | public void setDocumentNumber(String documentNumber) { | |
80 | 0 | this.documentNumber = documentNumber; |
81 | 0 | } |
82 | /** | |
83 | * @param sessionId the sessionId to set | |
84 | */ | |
85 | public void setSessionId(String sessionId) { | |
86 | 0 | this.sessionId = sessionId; |
87 | 0 | } |
88 | /** | |
89 | * @param principalId the principalId to set | |
90 | */ | |
91 | public void setPrincipalId(String principalId) { | |
92 | 0 | this.principalId = principalId; |
93 | 0 | } |
94 | /** | |
95 | * @param ipAddress the ipAddress to set | |
96 | */ | |
97 | public void setIpAddress(String ipAddress) { | |
98 | 0 | this.ipAddress = ipAddress; |
99 | 0 | } |
100 | ||
101 | } |