View Javadoc

1   /*
2    * Copyright 2007-2009 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.ui;
17  
18  import javax.persistence.Column;
19  import javax.persistence.Id;
20  import javax.persistence.MappedSuperclass;
21  import javax.persistence.Transient;
22  
23  import org.kuali.rice.kim.bo.types.impl.KimAttributeImpl;
24  
25  /**
26   * This class is the base class for KIM documents sub-business objects that store attribute/qualifier data
27   * 
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   *
30   */
31  @MappedSuperclass
32  public class KimDocumentAttributeDataBusinessObjectBase extends KimDocumentBoBase {
33  
34  	private static final long serialVersionUID = -1512640359333185819L;
35  	@Id
36  	@Column(name = "ATTR_DATA_ID")
37  	private String attrDataId;
38  	@Column(name = "KIM_TYP_ID")
39  	private String kimTypId;
40  	@Column(name = "KIM_ATTR_DEFN_ID")
41  	private String kimAttrDefnId;
42  	@Column(name = "ATTR_VAL")
43  	private String attrVal = "";
44  	private KimAttributeImpl kimAttribute;
45  	@Transient
46  	private String qualifierKey;
47  
48  	private Boolean unique;
49  	
50  	/**
51  	 * This constructs a ...
52  	 * 
53  	 */
54  	public KimDocumentAttributeDataBusinessObjectBase() {
55  		super();
56  	}
57  
58  	public String getAttrDataId() {
59  		return attrDataId;
60  	}
61  
62  	public void setAttrDataId(String attrDataId) {
63  		this.attrDataId = attrDataId;
64  	}
65  
66  	public String getKimTypId() {
67  		return kimTypId;
68  	}
69  
70  	public void setKimTypId(String kimTypId) {
71  		this.kimTypId = kimTypId;
72  	}
73  
74  	public String getKimAttrDefnId() {
75  		return kimAttrDefnId;
76  	}
77  
78  	public void setKimAttrDefnId(String kimAttrDefnId) {
79  		this.kimAttrDefnId = kimAttrDefnId;
80  	}
81  
82  	public String getAttrVal() {
83  		return attrVal;
84  	}
85  
86  	public void setAttrVal(String attrVal) {
87  		this.attrVal = attrVal;
88  	}
89  
90  	public String getQualifierKey() {
91  		return this.qualifierKey;
92  	}
93  
94  	public void setQualifierKey(String qualifierKey) {
95  		this.qualifierKey = qualifierKey;
96  	}
97  
98  	/**
99  	 * @return the kimAttribute
100 	 */
101 	public KimAttributeImpl getKimAttribute() {
102 		return this.kimAttribute;
103 	}
104 
105 	/**
106 	 * @param kimAttribute the kimAttribute to set
107 	 */
108 	public void setKimAttribute(KimAttributeImpl kimAttribute) {
109 		this.kimAttribute = kimAttribute;
110 	}
111 
112 	/**
113 	 * @return the uniqueAndReadOnly
114 	 */
115 	public Boolean isUnique() {
116 		return this.unique;
117 	}
118 
119 	/**
120 	 * @param uniqueAndReadOnly the uniqueAndReadOnly to set
121 	 */
122 	public void setUnique(Boolean unique) {
123 		this.unique = unique;
124 	}
125 
126 }