Coverage Report - org.kuali.rice.kim.bo.reference.impl.EntityTypeImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
EntityTypeImpl
0%
0/13
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2008 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.reference.impl;
 17  
 
 18  
 import javax.persistence.AttributeOverride;
 19  
 import javax.persistence.AttributeOverrides;
 20  
 import javax.persistence.Column;
 21  
 import javax.persistence.Entity;
 22  
 import javax.persistence.Table;
 23  
 
 24  
 import org.kuali.rice.kim.bo.reference.EntityType;
 25  
 import org.kuali.rice.kim.bo.reference.dto.EntityTypeInfo;
 26  
 
 27  
 /**
 28  
  * This is a description of what this class does - jonathan don't forget to fill this in. 
 29  
  * 
 30  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 31  
  *
 32  
  */
 33  
 @Entity
 34  
 @Table(name="KRIM_ENT_TYP_T")
 35  
 @AttributeOverrides({
 36  
         @AttributeOverride(name="code",column=@Column(name="ENT_TYP_CD")),
 37  
         @AttributeOverride(name="name",column=@Column(name="NM"))
 38  
 })
 39  0
 public class EntityTypeImpl extends KimCodeBase implements EntityType {
 40  
 
 41  
         private static final long serialVersionUID = 1L;
 42  
 
 43  
         /**
 44  
          * @return the entityTypeCode
 45  
          */
 46  
         public String getEntityTypeCode() {
 47  0
                 return getCode();
 48  
         }
 49  
 
 50  
         /**
 51  
          * @param entityTypeCode the entityTypeCode to set
 52  
          */
 53  
         public void setEntityTypeCode(String entityTypeCode) {
 54  0
                 setCode( entityTypeCode );
 55  0
         }
 56  
 
 57  
         /**
 58  
          * @return the entityTypeName
 59  
          */
 60  
         public String getEntityTypeName() {
 61  0
                 return getName();
 62  
         }
 63  
 
 64  
         /**
 65  
          * @param entityTypeName the entityTypeName to set
 66  
          */
 67  
         public void setEntityTypeName(String entityTypeName) {
 68  0
                 setName(entityTypeName);
 69  0
         }
 70  
         
 71  
         public EntityTypeInfo toInfo() {
 72  0
                 EntityTypeInfo info = new EntityTypeInfo();
 73  0
                 info.setCode(code);
 74  0
                 info.setName(name);
 75  0
                 info.setDisplaySortCode(displaySortCode);
 76  0
                 info.setActive(active);
 77  0
                 return info;
 78  
         }
 79  
 
 80  
 }