001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.jba.cmp;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlRootElement;
024: import javax.xml.bind.annotation.XmlType;
025:
026: /**
027: * <p>Java class for anonymous complex type.
028: *
029: * <p>The following schema fragment specifies the expected content contained within this class.
030: *
031: * <pre>
032: * <complexType>
033: * <complexContent>
034: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
035: * <sequence>
036: * <element ref="{http://jboss.org}field-name"/>
037: * <element ref="{http://jboss.org}read-only" minOccurs="0"/>
038: * <element ref="{http://jboss.org}read-time-out" minOccurs="0"/>
039: * <element ref="{http://jboss.org}column-name" minOccurs="0"/>
040: * <element ref="{http://jboss.org}not-null" minOccurs="0"/>
041: * <choice minOccurs="0">
042: * <sequence>
043: * <element ref="{http://jboss.org}jdbc-type"/>
044: * <element ref="{http://jboss.org}sql-type"/>
045: * </sequence>
046: * <sequence>
047: * <element ref="{http://jboss.org}property" maxOccurs="unbounded"/>
048: * </sequence>
049: * </choice>
050: * <element ref="{http://jboss.org}auto-increment" minOccurs="0"/>
051: * <element ref="{http://jboss.org}dbindex" minOccurs="0"/>
052: * <element ref="{http://jboss.org}check-dirty-after-get" minOccurs="0"/>
053: * <element ref="{http://jboss.org}state-factory" minOccurs="0"/>
054: * </sequence>
055: * </restriction>
056: * </complexContent>
057: * </complexType>
058: * </pre>
059: *
060: *
061: */
062: @XmlAccessorType(XmlAccessType.FIELD)
063: @XmlType(name="",propOrder={"fieldName","readOnly","readTimeOut","columnName","notNull","jdbcType","sqlType","property","autoIncrement","dbindex","checkDirtyAfterGet","stateFactory"})
064: @XmlRootElement(name="cmp-field")
065: public class CmpField {
066:
067: @XmlElement(name="field-name",required=true)
068: protected FieldName fieldName;
069: @XmlElement(name="read-only")
070: protected ReadOnly readOnly;
071: @XmlElement(name="read-time-out")
072: protected ReadTimeOut readTimeOut;
073: @XmlElement(name="column-name")
074: protected ColumnName columnName;
075: @XmlElement(name="not-null")
076: protected NotNull notNull;
077: @XmlElement(name="jdbc-type")
078: protected JdbcType jdbcType;
079: @XmlElement(name="sql-type")
080: protected SqlType sqlType;
081: protected List<Property> property;
082: @XmlElement(name="auto-increment")
083: protected AutoIncrement autoIncrement;
084: protected Dbindex dbindex;
085: @XmlElement(name="check-dirty-after-get")
086: protected CheckDirtyAfterGet checkDirtyAfterGet;
087: @XmlElement(name="state-factory")
088: protected StateFactory stateFactory;
089:
090: /**
091: * Gets the value of the fieldName property.
092: *
093: * @return
094: * possible object is
095: * {@link FieldName }
096: *
097: */
098: public FieldName getFieldName() {
099: return fieldName;
100: }
101:
102: /**
103: * Sets the value of the fieldName property.
104: *
105: * @param value
106: * allowed object is
107: * {@link FieldName }
108: *
109: */
110: public void setFieldName(FieldName value) {
111: this .fieldName = value;
112: }
113:
114: /**
115: * Gets the value of the readOnly property.
116: *
117: * @return
118: * possible object is
119: * {@link ReadOnly }
120: *
121: */
122: public ReadOnly getReadOnly() {
123: return readOnly;
124: }
125:
126: /**
127: * Sets the value of the readOnly property.
128: *
129: * @param value
130: * allowed object is
131: * {@link ReadOnly }
132: *
133: */
134: public void setReadOnly(ReadOnly value) {
135: this .readOnly = value;
136: }
137:
138: /**
139: * Gets the value of the readTimeOut property.
140: *
141: * @return
142: * possible object is
143: * {@link ReadTimeOut }
144: *
145: */
146: public ReadTimeOut getReadTimeOut() {
147: return readTimeOut;
148: }
149:
150: /**
151: * Sets the value of the readTimeOut property.
152: *
153: * @param value
154: * allowed object is
155: * {@link ReadTimeOut }
156: *
157: */
158: public void setReadTimeOut(ReadTimeOut value) {
159: this .readTimeOut = value;
160: }
161:
162: /**
163: * Gets the value of the columnName property.
164: *
165: * @return
166: * possible object is
167: * {@link ColumnName }
168: *
169: */
170: public ColumnName getColumnName() {
171: return columnName;
172: }
173:
174: /**
175: * Sets the value of the columnName property.
176: *
177: * @param value
178: * allowed object is
179: * {@link ColumnName }
180: *
181: */
182: public void setColumnName(ColumnName value) {
183: this .columnName = value;
184: }
185:
186: /**
187: * Gets the value of the notNull property.
188: *
189: * @return
190: * possible object is
191: * {@link NotNull }
192: *
193: */
194: public NotNull getNotNull() {
195: return notNull;
196: }
197:
198: /**
199: * Sets the value of the notNull property.
200: *
201: * @param value
202: * allowed object is
203: * {@link NotNull }
204: *
205: */
206: public void setNotNull(NotNull value) {
207: this .notNull = value;
208: }
209:
210: /**
211: * Gets the value of the jdbcType property.
212: *
213: * @return
214: * possible object is
215: * {@link JdbcType }
216: *
217: */
218: public JdbcType getJdbcType() {
219: return jdbcType;
220: }
221:
222: /**
223: * Sets the value of the jdbcType property.
224: *
225: * @param value
226: * allowed object is
227: * {@link JdbcType }
228: *
229: */
230: public void setJdbcType(JdbcType value) {
231: this .jdbcType = value;
232: }
233:
234: /**
235: * Gets the value of the sqlType property.
236: *
237: * @return
238: * possible object is
239: * {@link SqlType }
240: *
241: */
242: public SqlType getSqlType() {
243: return sqlType;
244: }
245:
246: /**
247: * Sets the value of the sqlType property.
248: *
249: * @param value
250: * allowed object is
251: * {@link SqlType }
252: *
253: */
254: public void setSqlType(SqlType value) {
255: this .sqlType = value;
256: }
257:
258: /**
259: * Gets the value of the property property.
260: *
261: * <p>
262: * This accessor method returns a reference to the live list,
263: * not a snapshot. Therefore any modification you make to the
264: * returned list will be present inside the JAXB object.
265: * This is why there is not a <CODE>set</CODE> method for the property property.
266: *
267: * <p>
268: * For example, to add a new item, do as follows:
269: * <pre>
270: * getProperty().add(newItem);
271: * </pre>
272: *
273: *
274: * <p>
275: * Objects of the following type(s) are allowed in the list
276: * {@link Property }
277: *
278: *
279: */
280: public List<Property> getProperty() {
281: if (property == null) {
282: property = new ArrayList<Property>();
283: }
284: return this .property;
285: }
286:
287: /**
288: * Gets the value of the autoIncrement property.
289: *
290: * @return
291: * possible object is
292: * {@link AutoIncrement }
293: *
294: */
295: public AutoIncrement getAutoIncrement() {
296: return autoIncrement;
297: }
298:
299: /**
300: * Sets the value of the autoIncrement property.
301: *
302: * @param value
303: * allowed object is
304: * {@link AutoIncrement }
305: *
306: */
307: public void setAutoIncrement(AutoIncrement value) {
308: this .autoIncrement = value;
309: }
310:
311: /**
312: * Gets the value of the dbindex property.
313: *
314: * @return
315: * possible object is
316: * {@link Dbindex }
317: *
318: */
319: public Dbindex getDbindex() {
320: return dbindex;
321: }
322:
323: /**
324: * Sets the value of the dbindex property.
325: *
326: * @param value
327: * allowed object is
328: * {@link Dbindex }
329: *
330: */
331: public void setDbindex(Dbindex value) {
332: this .dbindex = value;
333: }
334:
335: /**
336: * Gets the value of the checkDirtyAfterGet property.
337: *
338: * @return
339: * possible object is
340: * {@link CheckDirtyAfterGet }
341: *
342: */
343: public CheckDirtyAfterGet getCheckDirtyAfterGet() {
344: return checkDirtyAfterGet;
345: }
346:
347: /**
348: * Sets the value of the checkDirtyAfterGet property.
349: *
350: * @param value
351: * allowed object is
352: * {@link CheckDirtyAfterGet }
353: *
354: */
355: public void setCheckDirtyAfterGet(CheckDirtyAfterGet value) {
356: this .checkDirtyAfterGet = value;
357: }
358:
359: /**
360: * Gets the value of the stateFactory property.
361: *
362: * @return
363: * possible object is
364: * {@link StateFactory }
365: *
366: */
367: public StateFactory getStateFactory() {
368: return stateFactory;
369: }
370:
371: /**
372: * Sets the value of the stateFactory property.
373: *
374: * @param value
375: * allowed object is
376: * {@link StateFactory }
377: *
378: */
379: public void setStateFactory(StateFactory value) {
380: this.stateFactory = value;
381: }
382:
383: }
|