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