| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 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") |
|
|
|
| 0% |
Uncovered Elements: 34 (34) |
Complexity: 13 |
Complexity Density: 0.62 |
|
| 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 |
|
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 1 |
Complexity Density: 0.11 |
|
| 56 |
0
|
@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 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 72 |
0
|
public String getCode() {... |
| 73 |
0
|
return code; |
| 74 |
|
} |
| 75 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 76 |
0
|
public void setCode(String code) {... |
| 77 |
0
|
this.code = code; |
| 78 |
|
} |
| 79 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 80 |
0
|
public String getAbbrevValue() {... |
| 81 |
0
|
return abbrevValue; |
| 82 |
|
} |
| 83 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 84 |
0
|
public void setAbbrevValue(String abbrevValue) {... |
| 85 |
0
|
this.abbrevValue = abbrevValue; |
| 86 |
|
} |
| 87 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 88 |
0
|
public String getValue() {... |
| 89 |
0
|
return value; |
| 90 |
|
} |
| 91 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 92 |
0
|
public void setValue(String value) {... |
| 93 |
0
|
this.value = value; |
| 94 |
|
} |
| 95 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 96 |
0
|
public int getSortKey() {... |
| 97 |
0
|
return sortKey; |
| 98 |
|
} |
| 99 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 100 |
0
|
public void setSortKey(int sortKey) {... |
| 101 |
0
|
this.sortKey = sortKey; |
| 102 |
|
} |
| 103 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 104 |
0
|
public String getEnumerationId() {... |
| 105 |
0
|
return enumerationId; |
| 106 |
|
} |
| 107 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 108 |
0
|
public void setEnumerationId(String enumerationId) {... |
| 109 |
0
|
this.enumerationId = enumerationId; |
| 110 |
|
} |
| 111 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 112 |
0
|
public Enumeration getEnumeration() {... |
| 113 |
0
|
return enumeration; |
| 114 |
|
} |
| 115 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 116 |
0
|
public void setEnumeration(Enumeration enumeration) {... |
| 117 |
0
|
this.enumeration = enumeration; |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
} |