Coverage Report - org.kuali.rice.kim.bo.reference.impl.EmploymentTypeImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
EmploymentTypeImpl
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  
 import javax.persistence.Transient;
 24  
 
 25  
 import org.kuali.rice.kim.bo.reference.EmploymentType;
 26  
 import org.kuali.rice.kim.bo.reference.dto.EmploymentTypeInfo;
 27  
 
 28  
 /**
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  */
 31  
 @Entity
 32  
 @Table(name="KRIM_EMP_TYP_T")
 33  
 @AttributeOverrides({
 34  
         @AttributeOverride(name="code",column=@Column(name="EMP_TYP_CD")),
 35  
         @AttributeOverride(name="name",column=@Column(name="NM"))
 36  
 })
 37  0
 public class EmploymentTypeImpl extends KimCodeBase implements EmploymentType {
 38  
 
 39  
         private static final long serialVersionUID = 1L;
 40  
 
 41  
         @Transient
 42  
         private String employmentTypeCode;
 43  
         
 44  
         /**
 45  
          * @see org.kuali.rice.kim.bo.reference.EmploymentType#getEmploymentTypeCode()
 46  
          */
 47  
         public String getEmploymentTypeCode() {
 48  0
                 return getCode();
 49  
         }
 50  
 
 51  
         /**
 52  
          * @see org.kuali.rice.kim.bo.reference.EmploymentType#getEmploymentTypeName()
 53  
          */
 54  
         public String getEmploymentTypeName() {
 55  0
                 return getName();
 56  
         }
 57  
 
 58  
         /**
 59  
          * @see org.kuali.rice.kim.bo.reference.EmploymentType#setEmploymentTypeCode(java.lang.String)
 60  
          */
 61  
         public void setEmploymentTypeCode(String employmentTypeCode) {
 62  0
                 setCode(employmentTypeCode);
 63  0
         }
 64  
 
 65  
         /**
 66  
          * @see org.kuali.rice.kim.bo.reference.EmploymentType#setEmploymentTypeName(java.lang.String)
 67  
          */
 68  
         public void setEmploymentTypeName(String employmentTypeName) {
 69  0
                 setName(employmentTypeName);
 70  0
         }
 71  
 
 72  
         public EmploymentTypeInfo toInfo() {
 73  0
                 EmploymentTypeInfo info = new EmploymentTypeInfo();
 74  0
                 info.setCode(code);
 75  0
                 info.setName(name);
 76  0
                 info.setDisplaySortCode(displaySortCode);
 77  0
                 info.setActive(active);
 78  0
                 return info;
 79  
         }
 80  
         
 81  
 }