Clover Coverage Report - Kuali Student 1.2-M1-SNAPSHOT (Aggregated)
Coverage timestamp: Fri Mar 4 2011 04:03:38 EST
../../../../../../img/srcFileCovDistChart0.png 49% of files have more coverage
21   120   13   1.62
0   73   0.62   13
13     1  
1    
 
  EnumeratedValue       Line # 30 21 0% 13 34 0% 0.0
 
No Tests
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
14    */
15   
16    package org.kuali.student.core.enumerationmanagement.bo;
17   
18    import java.util.LinkedHashMap;
19   
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.student.core.bo.KsInactivatableFromToBase;
26   
27   
28    @Entity
29    @Table(name="KSEM_ENUM_VAL_T")
 
30    public class EnumeratedValue extends KsInactivatableFromToBase {
31   
32    public static final String ENUMERATION_KEY = "enumerationId";
33   
34    private static final long serialVersionUID = 1L;
35   
36   
37    @Column(name="enum_key")
38    String enumerationId;
39   
40    @Column(name="CD")
41    String code;
42   
43    @Column(name="ABBREV_VAL")
44    String abbrevValue;
45   
46    @Column(name="VAL")
47    String value;
48   
49    @Column(name="SORT_KEY")
50    int sortKey;
51   
52    @Transient
53    transient Enumeration enumeration;
54   
55   
 
56  0 toggle @Override
57    protected LinkedHashMap<String, Object> toStringMapper() {
58  0 LinkedHashMap<String, Object> map = super.toStringMapper();
59   
60  0 map.put("enumerationId", enumerationId);
61  0 map.put("code", code);
62  0 map.put("abbrevValue", abbrevValue);
63  0 map.put("value", value);
64  0 map.put("activeFromDate", activeFromDate);
65  0 map.put("activeToDate", activeToDate);
66  0 map.put("sortKey", sortKey);
67   
68  0 return map;
69    }
70   
71   
 
72  0 toggle public String getCode() {
73  0 return code;
74    }
75   
 
76  0 toggle public void setCode(String code) {
77  0 this.code = code;
78    }
79   
 
80  0 toggle public String getAbbrevValue() {
81  0 return abbrevValue;
82    }
83   
 
84  0 toggle public void setAbbrevValue(String abbrevValue) {
85  0 this.abbrevValue = abbrevValue;
86    }
87   
 
88  0 toggle public String getValue() {
89  0 return value;
90    }
91   
 
92  0 toggle public void setValue(String value) {
93  0 this.value = value;
94    }
95   
 
96  0 toggle public int getSortKey() {
97  0 return sortKey;
98    }
99   
 
100  0 toggle public void setSortKey(int sortKey) {
101  0 this.sortKey = sortKey;
102    }
103   
 
104  0 toggle public String getEnumerationId() {
105  0 return enumerationId;
106    }
107   
 
108  0 toggle public void setEnumerationId(String enumerationId) {
109  0 this.enumerationId = enumerationId;
110    }
111   
 
112  0 toggle public Enumeration getEnumeration() {
113  0 return enumeration;
114    }
115   
 
116  0 toggle public void setEnumeration(Enumeration enumeration) {
117  0 this.enumeration = enumeration;
118    }
119   
120    }