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