Coverage Report - org.kuali.rice.kim.bo.ui.PersonDocumentCitizenship
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonDocumentCitizenship
0%
0/26
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2009 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  
 import java.util.LinkedHashMap;
 20  
 
 21  
 import javax.persistence.Column;
 22  
 import javax.persistence.Entity;
 23  
 import javax.persistence.FetchType;
 24  
 import javax.persistence.Id;
 25  
 import javax.persistence.JoinColumn;
 26  
 import javax.persistence.ManyToOne;
 27  
 import javax.persistence.Table;
 28  
 
 29  
 import org.kuali.rice.kim.bo.reference.CitizenshipStatus;
 30  
 import org.kuali.rice.kim.bo.reference.impl.CitizenshipStatusImpl;
 31  
 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
 32  
 
 33  
 /**
 34  
  * This is a description of what this class does - shyu don't forget to fill this in. 
 35  
  * 
 36  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 37  
  *
 38  
  */
 39  
 @Entity
 40  
 @Table(name = "KRIM_PND_CTZNSHP_MT")
 41  0
 public class PersonDocumentCitizenship extends KimDocumentBoBase {
 42  
         @Id
 43  
         @Column(name = "ENTITY_CTZNSHP_ID")
 44  
         protected String entityCitizenshipId;
 45  
         
 46  
         @Column(name = "ENTITY_ID")
 47  
         protected String entityId;
 48  
         
 49  
         @Column(name = "POSTAL_CNTRY_CD")
 50  
         protected String countryCode;
 51  
 
 52  
         @Column(name = "CTZNSHP_STAT_CD")
 53  
         protected String citizenshipStatusCode;
 54  
 
 55  
         @Column(name = "strt_dt")
 56  
         protected Date startDate;
 57  
 
 58  
         @Column(name = "end_dt")
 59  
         protected Date endDate;
 60  
 
 61  
         
 62  
         /**
 63  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getCitizenshipStatusCode()
 64  
          */
 65  
         public String getCitizenshipStatusCode() {
 66  0
                 return citizenshipStatusCode;
 67  
         }
 68  
 
 69  
         /**
 70  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getEndDate()
 71  
          */
 72  
         public Date getEndDate() {
 73  0
                 return endDate;
 74  
         }
 75  
 
 76  
         /**
 77  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getEntityCitizenshipId()
 78  
          */
 79  
         public String getEntityCitizenshipId() {
 80  0
                 return entityCitizenshipId;
 81  
         }
 82  
 
 83  
         /**
 84  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getStartDate()
 85  
          */
 86  
         public Date getStartDate() {
 87  0
                 return startDate;
 88  
         }
 89  
 
 90  
         /**
 91  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#setCitizenshipStatusCode(java.lang.String)
 92  
          */
 93  
         public void setCitizenshipStatusCode(String citizenshipStatusCode) {
 94  0
                 this.citizenshipStatusCode = citizenshipStatusCode;
 95  0
         }
 96  
 
 97  
         /**
 98  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#setEndDate(java.util.Date)
 99  
          */
 100  
         public void setEndDate(Date endDate) {
 101  0
                 this.endDate = endDate;
 102  0
         }
 103  
 
 104  
         /**
 105  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#startDate(java.util.Date)
 106  
          */
 107  
         public void setStartDate(Date startDate) {
 108  0
                 this.startDate = startDate;
 109  0
         }
 110  
 
 111  
 
 112  
         public String getEntityId() {
 113  0
                 return this.entityId;
 114  
         }
 115  
 
 116  
         public void setEntityId(String entityId) {
 117  0
                 this.entityId = entityId;
 118  0
         }
 119  
 
 120  
         public String getCountryCode() {
 121  0
                 return this.countryCode;
 122  
         }
 123  
 
 124  
         public void setCountryCode(String countryCode) {
 125  0
                 this.countryCode = countryCode;
 126  0
         }
 127  
 
 128  
         public void setEntityCitizenshipId(String entityCitizenshipId) {
 129  0
                 this.entityCitizenshipId = entityCitizenshipId;
 130  0
         }
 131  
         
 132  
         @Override
 133  
         protected LinkedHashMap toStringMapper() {
 134  0
                 LinkedHashMap m = super.toStringMapper();
 135  0
                 m.put( "entityCitizenshipId", entityCitizenshipId );
 136  0
                 m.put( "countryCode", countryCode );
 137  0
                 m.put( "citizenshipStatusCode", citizenshipStatusCode );
 138  0
                 m.put( "startDate", startDate );
 139  0
                 m.put( "endDate", endDate );
 140  0
                 return m;
 141  
         }
 142  
 
 143  
 }