Coverage Report - org.kuali.rice.kim.bo.ui.PersonDocumentAddress
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonDocumentAddress
0%
0/54
N/A
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.kim.bo.ui;
 17  
 
 18  
 import org.hibernate.annotations.GenericGenerator;
 19  
 import org.hibernate.annotations.Parameter;
 20  
 import org.hibernate.annotations.Type;
 21  
 import org.kuali.rice.kim.impl.identity.address.EntityAddressTypeBo;
 22  
 
 23  
 import javax.persistence.Column;
 24  
 import javax.persistence.Entity;
 25  
 import javax.persistence.FetchType;
 26  
 import javax.persistence.GeneratedValue;
 27  
 import javax.persistence.Id;
 28  
 import javax.persistence.IdClass;
 29  
 import javax.persistence.JoinColumn;
 30  
 import javax.persistence.ManyToOne;
 31  
 import javax.persistence.Table;
 32  
 import javax.persistence.Transient;
 33  
 import java.sql.Timestamp;
 34  
 
 35  
 /**
 36  
  * This is a description of what this class does - shyu don't forget to fill this in. 
 37  
  * 
 38  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 39  
  *
 40  
  */
 41  
 @IdClass(PersonDocumentAddressId.class)
 42  
 @Entity
 43  
 @Table(name = "KRIM_PND_ADDR_MT")
 44  
 public class PersonDocumentAddress extends PersonDocumentBoDefaultBase {
 45  
         @Id
 46  
         @GeneratedValue(generator="KRIM_ENTITY_ADDR_ID_S")
 47  
         @GenericGenerator(name="KRIM_ENTITY_ADDR_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
 48  
                         @Parameter(name="sequence_name",value="KRIM_ENTITY_ADDR_ID_S"),
 49  
                         @Parameter(name="value_column",value="id")
 50  
                 })
 51  
         @Column(name = "ENTITY_ADDR_ID")
 52  
         protected String entityAddressId;
 53  
 
 54  
 
 55  
         @Column(name = "ADDR_TYP_CD")
 56  
         protected String addressTypeCode;
 57  
 
 58  
         //@Column(name = "ENT_TYP_CD")
 59  
         @Transient
 60  
         protected String entityTypeCode;
 61  
 
 62  
         @Column(name = "CITY_NM")
 63  
         protected String city;
 64  
 
 65  
         @Column(name = "STATE_PVC_CD")
 66  
         protected String stateProvinceCode;
 67  
 
 68  
         @Column(name = "POSTAL_CD")
 69  
         protected String postalCode;
 70  
 
 71  
         @Column(name = "POSTAL_CNTRY_CD")
 72  
         protected String countryCode;
 73  
 
 74  
     @Column(name = "ATTN_LINE")
 75  
         protected String attentionLine;
 76  
 
 77  
         @Column(name = "ADDR_LINE_1")
 78  
         protected String line1;
 79  
 
 80  
         @Column(name = "ADDR_LINE_2")
 81  
         protected String line2;
 82  
 
 83  
         @Column(name = "ADDR_LINE_3")
 84  
         protected String line3;
 85  
 
 86  
     @Column(name = "ADDR_FMT")
 87  
     protected String addressFormat;
 88  
 
 89  
     @Column(name = "MOD_DT")
 90  
     protected Timestamp modifiedDate;
 91  
 
 92  
     @Column(name = "VALID_DT")
 93  
     protected Timestamp validatedDate;
 94  
 
 95  
     @Type(type="yes_no")
 96  
         @Column(name="VALID_IND")
 97  
     protected boolean validated;
 98  
 
 99  
     @Column(name = "NOTE_MSG")
 100  
         protected String noteMessage;
 101  
 
 102  
         @ManyToOne(targetEntity=EntityAddressTypeBo.class, fetch = FetchType.EAGER, cascade = {})
 103  
         @JoinColumn(name = "ADDR_TYP_CD", insertable = false, updatable = false)
 104  
         private EntityAddressTypeBo addressType;
 105  
 
 106  
         // Waiting until we pull in from KFS
 107  
         // protected State state;
 108  
         // protected PostalCode postalCode;
 109  
         // protected Country country;
 110  0
         public PersonDocumentAddress() {
 111  0
                 this.active = true;
 112  0
         }
 113  
 
 114  
         /**
 115  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getAddressTypeCode()
 116  
          */
 117  
         public String getAddressTypeCode() {
 118  0
                 return addressTypeCode;
 119  
         }
 120  
 
 121  
         /**
 122  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getCity()
 123  
          */
 124  
         public String getCity() {
 125  0
                 return city;
 126  
         }
 127  
 
 128  
         /**
 129  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getCountryCode()
 130  
          */
 131  
         public String getCountryCode() {
 132  0
                 return countryCode;
 133  
         }
 134  
 
 135  
         /**
 136  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getEntityAddressId()
 137  
          */
 138  
         public String getEntityAddressId() {
 139  0
                 return entityAddressId;
 140  
         }
 141  
 
 142  
     /**
 143  
          * @see org.kuali.rice.kim.api.identity.address.EntityAddressContract#getAttentionLine()
 144  
          */
 145  
         public String getAttentionLine() {
 146  0
                 return attentionLine;
 147  
         }
 148  
 
 149  
         /**
 150  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine1()
 151  
          */
 152  
         public String getLine1() {
 153  0
                 return line1;
 154  
         }
 155  
 
 156  
         /**
 157  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine2()
 158  
          */
 159  
         public String getLine2() {
 160  0
                 return line2;
 161  
         }
 162  
 
 163  
         /**
 164  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine3()
 165  
          */
 166  
         public String getLine3() {
 167  0
                 return line3;
 168  
         }
 169  
 
 170  
     /**
 171  
          * @see @see org.kuali.rice.kim.api.identity.address.EntityAddressContract#getAddressFormat
 172  
          */
 173  
         public String getAddressFormat() {
 174  0
                 return addressFormat;
 175  
         }
 176  
 
 177  
     public Timestamp getModifiedDate() {
 178  0
         return modifiedDate;
 179  
     }
 180  
 
 181  
     public Timestamp getValidatedDate() {
 182  0
         return validatedDate;
 183  
     }
 184  
 
 185  
     public boolean isValidated() {
 186  0
         return validated;
 187  
     }
 188  
 
 189  
     public String getNoteMessage() {
 190  0
         return noteMessage;
 191  
     }
 192  
 
 193  
         /**
 194  
          * This overridden method ...
 195  
          * 
 196  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getPostalCode()
 197  
          */
 198  
         public String getPostalCode() {
 199  0
                 return postalCode;
 200  
         }
 201  
 
 202  
         /**
 203  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getStateCode()
 204  
          */
 205  
         public String getStateProvinceCode() {
 206  0
                 return stateProvinceCode;
 207  
         }
 208  
 
 209  
         /**
 210  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#setAddressTypeCode(java.lang.String)
 211  
          */
 212  
         public void setAddressTypeCode(String addressTypeCode) {
 213  0
                 this.addressTypeCode = addressTypeCode;
 214  0
         }
 215  
 
 216  
         /**
 217  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#setCity(java.lang.String)
 218  
          */
 219  
         public void setCity(String city) {
 220  0
                 this.city = city;
 221  0
         }
 222  
 
 223  
         /**
 224  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#setCountryCode(java.lang.String)
 225  
          */
 226  
         public void setCountryCode(String countryCode) {
 227  0
                 this.countryCode = countryCode;
 228  0
         }
 229  
 
 230  
     /**
 231  
          * @see org.kuali.rice.kim.api.identity.address.EntityAddressContract#getAttentionLine()
 232  
          */
 233  
         public void setAttentionLine(String attentionLine) {
 234  0
                 this.attentionLine = attentionLine;
 235  0
         }
 236  
 
 237  
         /**
 238  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#setLine1(java.lang.String)
 239  
          */
 240  
         public void setLine1(String line1) {
 241  0
                 this.line1 = line1;
 242  0
         }
 243  
 
 244  
         /**
 245  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#setLine2(java.lang.String)
 246  
          */
 247  
         public void setLine2(String line2) {
 248  0
                 this.line2 = line2;
 249  0
         }
 250  
 
 251  
         /**
 252  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#setLine3(java.lang.String)
 253  
          */
 254  
         public void setLine3(String line3) {
 255  0
                 this.line3 = line3;
 256  0
         }
 257  
 
 258  
     /**
 259  
          * @see org.kuali.rice.kim.api.identity.address.EntityAddressContract#getAddressFormat()
 260  
          */
 261  
         public void setAddressFormat(String addressFormat) {
 262  0
                 this.addressFormat = addressFormat;
 263  0
         }
 264  
 
 265  
     public void setModifiedDate(Timestamp modifiedDate) {
 266  0
         this.modifiedDate = modifiedDate;
 267  0
     }
 268  
 
 269  
     public void setValidatedDate(Timestamp validatedDate) {
 270  0
         this.validatedDate = validatedDate;
 271  0
     }
 272  
 
 273  
     public void setValidated(boolean validated) {
 274  0
         this.validated = validated;
 275  0
     }
 276  
 
 277  
     public void setNoteMessage(String noteMessage) {
 278  0
         this.noteMessage = noteMessage;
 279  0
     }
 280  
 
 281  
         /**
 282  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#setPostalCode(java.lang.String)
 283  
          */
 284  
         public void setPostalCode(String postalCode) {
 285  0
                 this.postalCode = postalCode;
 286  0
         }
 287  
 
 288  
         /**
 289  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#setStateCode(java.lang.String)
 290  
          */
 291  
         public void setStateProvinceCode(String stateProvinceCode) {
 292  0
                 this.stateProvinceCode = stateProvinceCode;
 293  0
         }
 294  
 
 295  
         /**
 296  
          * @see org.kuali.rice.kim.impl.identity.type.EntityTypeContactInfoBo#getEntityTypeCode()
 297  
          */
 298  
         public String getEntityTypeCode() {
 299  0
                 return entityTypeCode;
 300  
         }
 301  
 
 302  
         public void setEntityTypeCode(String entityTypeCode) {
 303  0
                 this.entityTypeCode = entityTypeCode;
 304  0
         }
 305  
 
 306  
         public void setEntityAddressId(String entityAddressId) {
 307  0
                 this.entityAddressId = entityAddressId;
 308  0
         }
 309  
 
 310  
         public EntityAddressTypeBo getAddressType() {
 311  0
                 return this.addressType;
 312  
         }
 313  
 
 314  
         public void setAddressType(EntityAddressTypeBo addressType) {
 315  0
                 this.addressType = addressType;
 316  0
         }
 317  
 }