Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CampusTypeImpl |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2007 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 | ||
17 | package org.kuali.rice.kns.bo; | |
18 | ||
19 | import java.util.LinkedHashMap; | |
20 | ||
21 | import javax.persistence.Column; | |
22 | import javax.persistence.Entity; | |
23 | import javax.persistence.Id; | |
24 | import javax.persistence.Table; | |
25 | ||
26 | import org.hibernate.annotations.Type; | |
27 | ||
28 | ||
29 | /** | |
30 | * | |
31 | */ | |
32 | @Entity | |
33 | @Table(name="KRNS_CMP_TYP_T") | |
34 | public class CampusTypeImpl extends PersistableBusinessObjectBase implements Inactivateable, CampusType { | |
35 | ||
36 | @Id | |
37 | @Column(name="CAMPUS_TYP_CD") | |
38 | private String campusTypeCode; | |
39 | @Column(name="DOBJ_MAINT_CD_ACTV_IND") | |
40 | private boolean dataObjectMaintenanceCodeActiveIndicator; | |
41 | @Column(name="CMP_TYP_NM") | |
42 | private String campusTypeName; | |
43 | @Type(type="yes_no") | |
44 | @Column(name="ACTV_IND") | |
45 | protected boolean active; | |
46 | ||
47 | /** | |
48 | * Default constructor. | |
49 | */ | |
50 | 0 | public CampusTypeImpl() { |
51 | 0 | dataObjectMaintenanceCodeActiveIndicator = true; |
52 | 0 | } |
53 | ||
54 | /** | |
55 | * This overridden method ... | |
56 | * | |
57 | * @see org.kuali.rice.kns.bo.CampusType#getCampusTypeCode() | |
58 | */ | |
59 | public String getCampusTypeCode() { | |
60 | 0 | return campusTypeCode; |
61 | } | |
62 | ||
63 | /** | |
64 | * This overridden method ... | |
65 | * | |
66 | * @see org.kuali.rice.kns.bo.CampusType#setCampusTypeCode(java.lang.String) | |
67 | */ | |
68 | public void setCampusTypeCode(String campusTypeCode) { | |
69 | 0 | this.campusTypeCode = campusTypeCode; |
70 | 0 | } |
71 | ||
72 | ||
73 | /** | |
74 | * This overridden method ... | |
75 | * | |
76 | * @see org.kuali.rice.kns.bo.CampusType#getDataObjectMaintenanceCodeActiveIndicator() | |
77 | */ | |
78 | public boolean getDataObjectMaintenanceCodeActiveIndicator() { | |
79 | 0 | return dataObjectMaintenanceCodeActiveIndicator; |
80 | } | |
81 | ||
82 | /** | |
83 | * This overridden method ... | |
84 | * | |
85 | * @see org.kuali.rice.kns.bo.CampusType#setDataObjectMaintenanceCodeActiveIndicator(boolean) | |
86 | */ | |
87 | public void setDataObjectMaintenanceCodeActiveIndicator(boolean dataObjectMaintenanceCodeActiveIndicator) { | |
88 | 0 | this.dataObjectMaintenanceCodeActiveIndicator = dataObjectMaintenanceCodeActiveIndicator; |
89 | 0 | } |
90 | ||
91 | ||
92 | /** | |
93 | * This overridden method ... | |
94 | * | |
95 | * @see org.kuali.rice.kns.bo.CampusType#getCampusTypeName() | |
96 | */ | |
97 | public String getCampusTypeName() { | |
98 | 0 | return campusTypeName; |
99 | } | |
100 | ||
101 | /** | |
102 | * This overridden method ... | |
103 | * | |
104 | * @see org.kuali.rice.kns.bo.CampusType#setCampusTypeName(java.lang.String) | |
105 | */ | |
106 | public void setCampusTypeName(String campusTypeName) { | |
107 | 0 | this.campusTypeName = campusTypeName; |
108 | 0 | } |
109 | ||
110 | /** | |
111 | * This overridden method ... | |
112 | * | |
113 | * @see org.kuali.rice.kns.bo.CampusType#isActive() | |
114 | */ | |
115 | public boolean isActive() { | |
116 | 0 | return this.active; |
117 | } | |
118 | ||
119 | /** | |
120 | * This overridden method ... | |
121 | * | |
122 | * @see org.kuali.rice.kns.bo.CampusType#setActive(boolean) | |
123 | */ | |
124 | public void setActive(boolean active) { | |
125 | 0 | this.active = active; |
126 | 0 | } |
127 | ||
128 | /** | |
129 | * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() | |
130 | */ | |
131 | protected LinkedHashMap toStringMapper() { | |
132 | 0 | LinkedHashMap m = new LinkedHashMap(); |
133 | 0 | m.put("campusTypeCode", this.campusTypeCode); |
134 | 0 | return m; |
135 | } | |
136 | } | |
137 |