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