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: * <choice>
038: * <sequence>
039: * <element ref="{http://jboss.org}column-name"/>
040: * <sequence minOccurs="0">
041: * <element ref="{http://jboss.org}jdbc-type"/>
042: * <element ref="{http://jboss.org}sql-type"/>
043: * </sequence>
044: * </sequence>
045: * <sequence>
046: * <element ref="{http://jboss.org}property" maxOccurs="unbounded" minOccurs="0"/>
047: * </sequence>
048: * </choice>
049: * <element ref="{http://jboss.org}dbindex" minOccurs="0"/>
050: * </sequence>
051: * </restriction>
052: * </complexContent>
053: * </complexType>
054: * </pre>
055: *
056: *
057: */
058: @XmlAccessorType(XmlAccessType.FIELD)
059: @XmlType(name="",propOrder={"fieldName","columnName","jdbcType","sqlType","property","dbindex"})
060: @XmlRootElement(name="key-field")
061: public class KeyField {
062:
063: @XmlElement(name="field-name",required=true)
064: protected FieldName fieldName;
065: @XmlElement(name="column-name")
066: protected ColumnName columnName;
067: @XmlElement(name="jdbc-type")
068: protected JdbcType jdbcType;
069: @XmlElement(name="sql-type")
070: protected SqlType sqlType;
071: protected List<Property> property;
072: protected Dbindex dbindex;
073:
074: /**
075: * Gets the value of the fieldName property.
076: *
077: * @return
078: * possible object is
079: * {@link FieldName }
080: *
081: */
082: public FieldName getFieldName() {
083: return fieldName;
084: }
085:
086: /**
087: * Sets the value of the fieldName property.
088: *
089: * @param value
090: * allowed object is
091: * {@link FieldName }
092: *
093: */
094: public void setFieldName(FieldName value) {
095: this .fieldName = value;
096: }
097:
098: /**
099: * Gets the value of the columnName property.
100: *
101: * @return
102: * possible object is
103: * {@link ColumnName }
104: *
105: */
106: public ColumnName getColumnName() {
107: return columnName;
108: }
109:
110: /**
111: * Sets the value of the columnName property.
112: *
113: * @param value
114: * allowed object is
115: * {@link ColumnName }
116: *
117: */
118: public void setColumnName(ColumnName value) {
119: this .columnName = value;
120: }
121:
122: /**
123: * Gets the value of the jdbcType property.
124: *
125: * @return
126: * possible object is
127: * {@link JdbcType }
128: *
129: */
130: public JdbcType getJdbcType() {
131: return jdbcType;
132: }
133:
134: /**
135: * Sets the value of the jdbcType property.
136: *
137: * @param value
138: * allowed object is
139: * {@link JdbcType }
140: *
141: */
142: public void setJdbcType(JdbcType value) {
143: this .jdbcType = value;
144: }
145:
146: /**
147: * Gets the value of the sqlType property.
148: *
149: * @return
150: * possible object is
151: * {@link SqlType }
152: *
153: */
154: public SqlType getSqlType() {
155: return sqlType;
156: }
157:
158: /**
159: * Sets the value of the sqlType property.
160: *
161: * @param value
162: * allowed object is
163: * {@link SqlType }
164: *
165: */
166: public void setSqlType(SqlType value) {
167: this .sqlType = value;
168: }
169:
170: /**
171: * Gets the value of the property property.
172: *
173: * <p>
174: * This accessor method returns a reference to the live list,
175: * not a snapshot. Therefore any modification you make to the
176: * returned list will be present inside the JAXB object.
177: * This is why there is not a <CODE>set</CODE> method for the property property.
178: *
179: * <p>
180: * For example, to add a new item, do as follows:
181: * <pre>
182: * getProperty().add(newItem);
183: * </pre>
184: *
185: *
186: * <p>
187: * Objects of the following type(s) are allowed in the list
188: * {@link Property }
189: *
190: *
191: */
192: public List<Property> getProperty() {
193: if (property == null) {
194: property = new ArrayList<Property>();
195: }
196: return this .property;
197: }
198:
199: /**
200: * Gets the value of the dbindex property.
201: *
202: * @return
203: * possible object is
204: * {@link Dbindex }
205: *
206: */
207: public Dbindex getDbindex() {
208: return dbindex;
209: }
210:
211: /**
212: * Sets the value of the dbindex property.
213: *
214: * @param value
215: * allowed object is
216: * {@link Dbindex }
217: *
218: */
219: public void setDbindex(Dbindex value) {
220: this.dbindex = value;
221: }
222:
223: }
|