View Javadoc

1   /**
2    * Copyright 2005-2013 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.kim.bo.ui;
17  
18  import javax.persistence.Column;
19  import javax.persistence.Entity;
20  import javax.persistence.GeneratedValue;
21  import javax.persistence.Id;
22  import javax.persistence.IdClass;
23  import javax.persistence.Table;
24  import java.sql.Date;
25  
26  /**
27   * This is a description of what this class does - shyu don't forget to fill this in. 
28   * 
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   *
31   */
32  @IdClass(PersonDocumentCitizenshipId.class)
33  @Entity
34  @Table(name = "KRIM_PND_CTZNSHP_MT")
35  public class PersonDocumentCitizenship extends KimDocumentBoActivatableEditableBase {
36  	@Id
37  	@GeneratedValue(generator="KRIM_ENTITY_CTZNSHP_ID_S")
38  	@Column(name = "ENTITY_CTZNSHP_ID")
39  	protected String entityCitizenshipId;
40  	
41  	@Column(name = "ENTITY_ID")
42  	protected String entityId;
43  	
44  	@Column(name = "POSTAL_CNTRY_CD")
45  	protected String countryCode;
46  
47  	@Column(name = "CTZNSHP_STAT_CD")
48  	protected String citizenshipStatusCode;
49  
50  	@Column(name = "strt_dt")
51  	protected Date startDate;
52  
53  	@Column(name = "end_dt")
54  	protected Date endDate;
55  
56  	
57  	/**
58  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getCitizenshipStatusCode()
59  	 */
60  	public String getCitizenshipStatusCode() {
61  		return citizenshipStatusCode;
62  	}
63  
64  	/**
65  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getEndDate()
66  	 */
67  	public Date getEndDate() {
68  		return endDate;
69  	}
70  
71  	/**
72  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getId()
73  	 */
74  	public String getEntityCitizenshipId() {
75  		return entityCitizenshipId;
76  	}
77  
78  	/**
79  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getStartDate()
80  	 */
81  	public Date getStartDate() {
82  		return startDate;
83  	}
84  
85  	/**
86  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setStatusCode(java.lang.String)
87  	 */
88  	public void setCitizenshipStatusCode(String citizenshipStatusCode) {
89  		this.citizenshipStatusCode = citizenshipStatusCode;
90  	}
91  
92  	/**
93  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setEndDate(java.util.Date)
94  	 */
95  	public void setEndDate(Date endDate) {
96  		this.endDate = endDate;
97  	}
98  
99  	/**
100 	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#startDate(java.util.Date)
101 	 */
102 	public void setStartDate(Date startDate) {
103 		this.startDate = startDate;
104 	}
105 
106 
107 	public String getEntityId() {
108 		return this.entityId;
109 	}
110 
111 	public void setEntityId(String entityId) {
112 		this.entityId = entityId;
113 	}
114 
115 	public String getCountryCode() {
116 		return this.countryCode;
117 	}
118 
119 	public void setCountryCode(String countryCode) {
120 		this.countryCode = countryCode;
121 	}
122 
123 	public void setEntityCitizenshipId(String entityCitizenshipId) {
124 		this.entityCitizenshipId = entityCitizenshipId;
125 	}
126 }