Coverage Report - org.kuali.rice.kim.impl.identity.external.EntityExternalIdentifierTypeBo
 
Classes in this File Line Coverage Branch Coverage Complexity
EntityExternalIdentifierTypeBo
0%
0/12
0%
0/4
0
 
 1  
 package org.kuali.rice.kim.impl.identity.external
 2  
 
 3  
 import javax.persistence.Column
 4  
 import javax.persistence.Entity
 5  
 import javax.persistence.Id
 6  
 import javax.persistence.Table
 7  
 import org.kuali.rice.kim.api.identity.Type
 8  
 import org.kuali.rice.kim.api.identity.TypeContract
 9  
 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase
 10  
 import org.kuali.rice.kim.api.identity.external.EntityExternalIdentifierTypeContract
 11  
 import org.kuali.rice.kim.api.identity.external.EntityExternalIdentifierType
 12  
 
 13  
 @Entity
 14  
 @Table(name="KRIM_EXT_ID_TYP_T")
 15  
 public class EntityExternalIdentifierTypeBo extends PersistableBusinessObjectBase implements EntityExternalIdentifierTypeContract {
 16  
     @Id
 17  
     @Column(name="EXT_ID_TYP_CD")
 18  
     String code;
 19  
     @Column(name="NM")
 20  
     String name;
 21  
     @org.hibernate.annotations.Type(type="yes_no")
 22  
     @Column(name="ACTV_IND")
 23  
     boolean active;
 24  
     @Column(name="DISPLAY_SORT_CD")
 25  
     String sortCode;
 26  
 
 27  
     @org.hibernate.annotations.Type(type="yes_no")
 28  
         @Column(name="ENCR_REQ_IND")
 29  
         boolean encryptionRequired;
 30  
 
 31  
 
 32  
     /**
 33  
    * Converts a mutable AddressTypeBo to an immutable AddressType representation.
 34  
    * @param bo
 35  
    * @return an immutable AddressType
 36  
    */
 37  
   static EntityExternalIdentifierType to(EntityExternalIdentifierTypeBo bo) {
 38  0
     if (bo == null) { return null }
 39  0
     return EntityExternalIdentifierType.Builder.create(bo).build()
 40  
   }
 41  
 
 42  
   /**
 43  
    * Creates a AddressType business object from an immutable representation of a AddressType.
 44  
    * @param an immutable AddressType
 45  
    * @return a AddressTypeBo
 46  
    */
 47  
   static EntityExternalIdentifierTypeBo from(EntityExternalIdentifierType immutable) {
 48  0
     if (immutable == null) {return null}
 49  
 
 50  0
     EntityExternalIdentifierTypeBo bo = new EntityExternalIdentifierTypeBo()
 51  0
     bo.code = immutable.code
 52  0
     bo.name = immutable.name
 53  0
     bo.sortCode = immutable.sortCode
 54  0
     bo.active = immutable.active
 55  0
     bo.encryptionRequired = immutable.encryptionRequired
 56  0
     bo.versionNumber = immutable.versionNumber
 57  0
     bo.objectId = immutable.objectId
 58  
 
 59  0
     return bo;
 60  
   }
 61  
 }