1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.entity; |
17 | |
|
18 | |
import javax.persistence.Column; |
19 | |
import javax.persistence.Embeddable; |
20 | |
|
21 | |
@Embeddable |
22 | 0 | public class FieldDescriptorEntity { |
23 | |
|
24 | |
@Column(name = "NAME", nullable = false) |
25 | |
protected String name; |
26 | |
@Column(name = "DESCR", nullable = false) |
27 | |
protected String descr; |
28 | |
@Column(name = "DATA_TYPE", nullable = false) |
29 | |
protected String dataType; |
30 | |
@Column(name="MIN_VALUE") |
31 | |
protected String minValue; |
32 | |
@Column(name="MAX_VALUE") |
33 | |
protected String maxValue; |
34 | |
@Column(name="MIN_LENGTH") |
35 | |
protected Integer minLength; |
36 | |
@Column(name="MAX_LENGTH") |
37 | |
protected Integer maxLength; |
38 | |
@Column(name="VALID_CHARS") |
39 | |
protected String validChars; |
40 | |
@Column(name="INVALID_CHARS") |
41 | |
protected String invalidChars; |
42 | |
@Column(name="MIN_OCCURS") |
43 | |
protected Integer minOccurs; |
44 | |
@Column(name="MAX_OCCURS") |
45 | |
protected Integer maxOccurs; |
46 | 0 | @Column(name="READ_ONLY", nullable = false) |
47 | |
protected boolean readOnly = false; |
48 | |
|
49 | |
|
50 | |
|
51 | |
public String getName() { |
52 | 0 | return name; |
53 | |
} |
54 | |
|
55 | |
|
56 | |
|
57 | |
public void setName(String name) { |
58 | 0 | this.name = name; |
59 | 0 | } |
60 | |
|
61 | |
|
62 | |
|
63 | |
public String getDescr() { |
64 | 0 | return descr; |
65 | |
} |
66 | |
|
67 | |
|
68 | |
|
69 | |
public void setDescr(String descr) { |
70 | 0 | this.descr = descr; |
71 | 0 | } |
72 | |
|
73 | |
|
74 | |
|
75 | |
public String getDataType() { |
76 | 0 | return dataType; |
77 | |
} |
78 | |
|
79 | |
|
80 | |
|
81 | |
public void setDataType(String dataType) { |
82 | 0 | this.dataType = dataType; |
83 | 0 | } |
84 | |
|
85 | |
|
86 | |
|
87 | |
public String getMinValue() { |
88 | 0 | return minValue; |
89 | |
} |
90 | |
|
91 | |
|
92 | |
|
93 | |
public void setMinValue(String minValue) { |
94 | 0 | this.minValue = minValue; |
95 | 0 | } |
96 | |
|
97 | |
|
98 | |
|
99 | |
public String getMaxValue() { |
100 | 0 | return maxValue; |
101 | |
} |
102 | |
|
103 | |
|
104 | |
|
105 | |
public void setMaxValue(String maxValue) { |
106 | 0 | this.maxValue = maxValue; |
107 | 0 | } |
108 | |
|
109 | |
|
110 | |
|
111 | |
public Integer getMinLength() { |
112 | 0 | return minLength; |
113 | |
} |
114 | |
|
115 | |
|
116 | |
|
117 | |
public void setMinLength(Integer minLength) { |
118 | 0 | this.minLength = minLength; |
119 | 0 | } |
120 | |
|
121 | |
|
122 | |
|
123 | |
public Integer getMaxLength() { |
124 | 0 | return maxLength; |
125 | |
} |
126 | |
|
127 | |
|
128 | |
|
129 | |
public void setMaxLength(Integer maxLength) { |
130 | 0 | this.maxLength = maxLength; |
131 | 0 | } |
132 | |
|
133 | |
|
134 | |
|
135 | |
public String getValidChars() { |
136 | 0 | return validChars; |
137 | |
} |
138 | |
|
139 | |
|
140 | |
|
141 | |
public void setValidChars(String validChars) { |
142 | 0 | this.validChars = validChars; |
143 | 0 | } |
144 | |
|
145 | |
|
146 | |
|
147 | |
public String getInvalidChars() { |
148 | 0 | return invalidChars; |
149 | |
} |
150 | |
|
151 | |
|
152 | |
|
153 | |
public void setInvalidChars(String invalidChars) { |
154 | 0 | this.invalidChars = invalidChars; |
155 | 0 | } |
156 | |
|
157 | |
|
158 | |
|
159 | |
public Integer getMinOccurs() { |
160 | 0 | return minOccurs; |
161 | |
} |
162 | |
|
163 | |
|
164 | |
|
165 | |
public void setMinOccurs(Integer minOccurs) { |
166 | 0 | this.minOccurs = minOccurs; |
167 | 0 | } |
168 | |
|
169 | |
|
170 | |
|
171 | |
public Integer getMaxOccurs() { |
172 | 0 | return maxOccurs; |
173 | |
} |
174 | |
|
175 | |
|
176 | |
|
177 | |
public void setMaxOccurs(Integer maxOccurs) { |
178 | 0 | this.maxOccurs = maxOccurs; |
179 | 0 | } |
180 | |
|
181 | |
|
182 | |
|
183 | |
public boolean isReadOnly() { |
184 | 0 | return readOnly; |
185 | |
} |
186 | |
|
187 | |
|
188 | |
|
189 | |
public void setReadOnly(boolean readOnly) { |
190 | 0 | this.readOnly = readOnly; |
191 | 0 | } |
192 | |
} |