1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.types.impl; |
17 | |
|
18 | |
import org.kuali.rice.kim.bo.types.KimAttributeData; |
19 | |
import org.kuali.rice.kim.bo.types.dto.KimTypeInfo; |
20 | |
import org.kuali.rice.kim.service.KIMServiceLocatorWeb; |
21 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
22 | |
import org.kuali.rice.kns.util.ObjectUtils; |
23 | |
|
24 | |
import javax.persistence.*; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
@MappedSuperclass |
33 | 0 | public class KimAttributeDataImpl extends PersistableBusinessObjectBase implements KimAttributeData { |
34 | |
|
35 | |
private static final long serialVersionUID = 2717672624042902701L; |
36 | |
|
37 | |
@Id |
38 | |
@Column(name="ATTR_DATA_ID") |
39 | |
protected String attributeDataId; |
40 | |
|
41 | |
@Column(name="KIM_TYP_ID") |
42 | |
protected String kimTypeId; |
43 | |
|
44 | |
@Column(name="KIM_ATTR_DEFN_ID") |
45 | |
protected String kimAttributeId; |
46 | |
|
47 | |
@Column(name="ATTR_VAL") |
48 | |
protected String attributeValue; |
49 | |
|
50 | |
@ManyToOne(targetEntity=KimAttributeImpl.class, fetch = FetchType.EAGER, cascade = { }) |
51 | |
@JoinColumn(name = "KIM_ATTR_DEFN_ID", insertable = false, updatable = false) |
52 | |
protected KimAttributeImpl kimAttribute; |
53 | |
|
54 | |
@Transient |
55 | |
protected transient KimTypeInfo kimType; |
56 | |
|
57 | |
public String getAttributeDataId() { |
58 | 0 | return this.attributeDataId; |
59 | |
} |
60 | |
public void setAttributeDataId(String attributeDataId) { |
61 | 0 | this.attributeDataId = attributeDataId; |
62 | 0 | } |
63 | |
|
64 | |
public String getAttributeValue() { |
65 | 0 | return this.attributeValue; |
66 | |
} |
67 | |
public void setAttributeValue(String attributeValue) { |
68 | 0 | this.attributeValue = attributeValue; |
69 | 0 | } |
70 | |
public String getKimTypeId() { |
71 | 0 | return this.kimTypeId; |
72 | |
} |
73 | |
public void setKimTypeId(String kimTypeId) { |
74 | 0 | this.kimTypeId = kimTypeId; |
75 | 0 | } |
76 | |
public String getKimAttributeId() { |
77 | 0 | return this.kimAttributeId; |
78 | |
} |
79 | |
public void setKimAttributeId(String kimAttributeId) { |
80 | 0 | this.kimAttributeId = kimAttributeId; |
81 | 0 | } |
82 | |
public KimAttributeImpl getKimAttribute() { |
83 | 0 | if(ObjectUtils.isNull(this.kimAttribute)) { |
84 | 0 | this.refreshReferenceObject("kimAttribute"); |
85 | |
} |
86 | 0 | return this.kimAttribute; |
87 | |
} |
88 | |
public void setKimAttribute(KimAttributeImpl kimAttribute) { |
89 | 0 | this.kimAttribute = kimAttribute; |
90 | 0 | } |
91 | |
public KimTypeInfo getKimType() { |
92 | 0 | if ( kimType == null ) { |
93 | 0 | kimType = KIMServiceLocatorWeb.getTypeInfoService().getKimType(kimTypeId); |
94 | |
} |
95 | 0 | return kimType; |
96 | |
} |
97 | |
} |