View Javadoc

1   /**
2    * Copyright 2005-2012 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  	public SessionDocumentId() {}
44  	
45  	public SessionDocumentId(String documentNumber, String sessionId, String principalId, String ipAddress) {
46  		this.documentNumber = documentNumber;
47  		this.sessionId = sessionId;
48  		this.principalId = principalId;
49  		this.ipAddress = ipAddress;
50  	}
51  	
52  	/**
53  	 * @return the documentNumber
54  	 */
55  	public String getDocumentNumber() {
56  		return this.documentNumber;
57  	}
58  	/**
59  	 * @return the sessionId
60  	 */
61  	public String getSessionId() {
62  		return this.sessionId;
63  	}
64  	/**
65  	 * @return the principalId
66  	 */
67  	public String getPrincipalId() {
68  		return this.principalId;
69  	}
70  	/**
71  	 * @return the ipAddress
72  	 */
73  	public String getIpAddress() {
74  		return this.ipAddress;
75  	}
76  	/**
77  	 * @param documentNumber the documentNumber to set
78  	 */
79  	public void setDocumentNumber(String documentNumber) {
80  		this.documentNumber = documentNumber;
81  	}
82  	/**
83  	 * @param sessionId the sessionId to set
84  	 */
85  	public void setSessionId(String sessionId) {
86  		this.sessionId = sessionId;
87  	}
88  	/**
89  	 * @param principalId the principalId to set
90  	 */
91  	public void setPrincipalId(String principalId) {
92  		this.principalId = principalId;
93  	}
94  	/**
95  	 * @param ipAddress the ipAddress to set
96  	 */
97  	public void setIpAddress(String ipAddress) {
98  		this.ipAddress = ipAddress;
99  	}
100 	
101 }