View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.r1.common.entity;
17  
18  import javax.persistence.Column;
19  import javax.persistence.Embeddable;
20  
21  @Deprecated
22  @Embeddable
23  public class FieldDescriptorEntity {
24      
25      @Column(name = "NAME", nullable = false)
26      protected String name;
27      @Column(name = "DESCR", nullable = false)
28      protected String descr;
29      @Column(name = "DATA_TYPE", nullable = false)
30      protected String dataType;
31      @Column(name="MIN_VALUE")
32      protected String minValue;
33      @Column(name="MAX_VALUE")
34      protected String maxValue;
35      @Column(name="MIN_LENGTH")
36      protected Integer minLength;
37      @Column(name="MAX_LENGTH")
38      protected Integer maxLength;
39      @Column(name="VALID_CHARS")
40      protected String validChars;
41      @Column(name="INVALID_CHARS")
42      protected String invalidChars;
43      @Column(name="MIN_OCCURS")
44      protected Integer minOccurs;
45      @Column(name="MAX_OCCURS")
46      protected Integer maxOccurs;
47      @Column(name="READ_ONLY", nullable = false)
48      protected boolean readOnly = false;
49      /**
50       * @return the name
51       */
52      public String getName() {
53          return name;
54      }
55      /**
56       * @param name the name to set
57       */
58      public void setName(String name) {
59          this.name = name;
60      }
61      /**
62       * @return the desc
63       */
64      public String getDescr() {
65          return descr;
66      }
67      /**
68       * @param desc the desc to set
69       */
70      public void setDescr(String descr) {
71          this.descr = descr;
72      }
73      /**
74       * @return the dataType
75       */
76      public String getDataType() {
77          return dataType;
78      }
79      /**
80       * @param dataType the dataType to set
81       */
82      public void setDataType(String dataType) {
83          this.dataType = dataType;
84      }
85      /**
86       * @return the minValue
87       */
88      public String getMinValue() {
89          return minValue;
90      }
91      /**
92       * @param minValue the minValue to set
93       */
94      public void setMinValue(String minValue) {
95          this.minValue = minValue;
96      }
97      /**
98       * @return the maxValue
99       */
100     public String getMaxValue() {
101         return maxValue;
102     }
103     /**
104      * @param maxValue the maxValue to set
105      */
106     public void setMaxValue(String maxValue) {
107         this.maxValue = maxValue;
108     }
109     /**
110      * @return the minLength
111      */
112     public Integer getMinLength() {
113         return minLength;
114     }
115     /**
116      * @param minLength the minLength to set
117      */
118     public void setMinLength(Integer minLength) {
119         this.minLength = minLength;
120     }
121     /**
122      * @return the maxLength
123      */
124     public Integer getMaxLength() {
125         return maxLength;
126     }
127     /**
128      * @param maxLength the maxLength to set
129      */
130     public void setMaxLength(Integer maxLength) {
131         this.maxLength = maxLength;
132     }
133     /**
134      * @return the validChars
135      */
136     public String getValidChars() {
137         return validChars;
138     }
139     /**
140      * @param validChars the validChars to set
141      */
142     public void setValidChars(String validChars) {
143         this.validChars = validChars;
144     }
145     /**
146      * @return the invalidChars
147      */
148     public String getInvalidChars() {
149         return invalidChars;
150     }
151     /**
152      * @param invalidChars the invalidChars to set
153      */
154     public void setInvalidChars(String invalidChars) {
155         this.invalidChars = invalidChars;
156     }
157     /**
158      * @return the minOccurs
159      */
160     public Integer getMinOccurs() {
161         return minOccurs;
162     }
163     /**
164      * @param minOccurs the minOccurs to set
165      */
166     public void setMinOccurs(Integer minOccurs) {
167         this.minOccurs = minOccurs;
168     }
169     /**
170      * @return the maxOccurs
171      */
172     public Integer getMaxOccurs() {
173         return maxOccurs;
174     }
175     /**
176      * @param maxOccurs the maxOccurs to set
177      */
178     public void setMaxOccurs(Integer maxOccurs) {
179         this.maxOccurs = maxOccurs;
180     }
181     /**
182      * @return the readOnly
183      */
184     public boolean isReadOnly() {
185         return readOnly;
186     }
187     /**
188      * @param readOnly the readOnly to set
189      */
190     public void setReadOnly(boolean readOnly) {
191         this.readOnly = readOnly;
192     }    
193 }