View Javadoc
1   /**
2    * Copyright 2005-2015 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 java.sql.Date;
19  
20  import javax.persistence.Column;
21  import javax.persistence.Entity;
22  import javax.persistence.GeneratedValue;
23  import javax.persistence.Id;
24  import javax.persistence.Table;
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  @Entity
33  @Table(name = "KRIM_PND_CTZNSHP_MT")
34  public class PersonDocumentCitizenship extends KimDocumentBoActivatableEditableBase {
35  	private static final long serialVersionUID = 1L;
36  
37      @Id
38  	@GeneratedValue(generator="KRIM_ENTITY_CTZNSHP_ID_S")
39  	@Column(name = "ENTITY_CTZNSHP_ID")
40  	protected String entityCitizenshipId;
41  	
42  	@Column(name = "ENTITY_ID")
43  	protected String entityId;
44  	
45  	@Column(name = "POSTAL_CNTRY_CD")
46  	protected String countryCode;
47  
48  	@Column(name = "CTZNSHP_STAT_CD")
49  	protected String citizenshipStatusCode;
50  
51  	@Column(name = "STRT_DT")
52  	protected Date startDate;
53  
54  	@Column(name = "END_DT")
55  	protected Date endDate;
56  
57  	
58  	/**
59  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getCitizenshipStatusCode()
60  	 */
61  	public String getCitizenshipStatusCode() {
62  		return citizenshipStatusCode;
63  	}
64  
65  	/**
66  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getEndDate()
67  	 */
68  	public Date getEndDate() {
69  		return endDate;
70  	}
71  
72  	/**
73  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getId()
74  	 */
75  	public String getEntityCitizenshipId() {
76  		return entityCitizenshipId;
77  	}
78  
79  	/**
80  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getStartDate()
81  	 */
82  	public Date getStartDate() {
83  		return startDate;
84  	}
85  
86  	/**
87  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setStatusCode(java.lang.String)
88  	 */
89  	public void setCitizenshipStatusCode(String citizenshipStatusCode) {
90  		this.citizenshipStatusCode = citizenshipStatusCode;
91  	}
92  
93  	/**
94  	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setEndDate(java.util.Date)
95  	 */
96  	public void setEndDate(Date endDate) {
97  		this.endDate = endDate;
98  	}
99  
100 	/**
101 	 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#startDate(java.util.Date)
102 	 */
103 	public void setStartDate(Date startDate) {
104 		this.startDate = startDate;
105 	}
106 
107 
108 	public String getEntityId() {
109 		return this.entityId;
110 	}
111 
112 	public void setEntityId(String entityId) {
113 		this.entityId = entityId;
114 	}
115 
116 	public String getCountryCode() {
117 		return this.countryCode;
118 	}
119 
120 	public void setCountryCode(String countryCode) {
121 		this.countryCode = countryCode;
122 	}
123 
124 	public void setEntityCitizenshipId(String entityCitizenshipId) {
125 		this.entityCitizenshipId = entityCitizenshipId;
126 	}
127 }