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 javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlElement;
021: import javax.xml.bind.annotation.XmlRootElement;
022: import javax.xml.bind.annotation.XmlType;
023:
024: /**
025: * <p>Java class for anonymous complex type.
026: *
027: * <p>The following schema fragment specifies the expected content contained within this class.
028: *
029: * <pre>
030: * <complexType>
031: * <complexContent>
032: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
033: * <choice>
034: * <element ref="{http://jboss.org}group-name"/>
035: * <element ref="{http://jboss.org}modified-strategy"/>
036: * <element ref="{http://jboss.org}read-strategy"/>
037: * <sequence>
038: * <choice>
039: * <element ref="{http://jboss.org}version-column"/>
040: * <element ref="{http://jboss.org}timestamp-column"/>
041: * <sequence>
042: * <element ref="{http://jboss.org}key-generator-factory"/>
043: * <element ref="{http://jboss.org}field-type"/>
044: * </sequence>
045: * </choice>
046: * <element ref="{http://jboss.org}field-name" minOccurs="0"/>
047: * <element ref="{http://jboss.org}column-name" minOccurs="0"/>
048: * <sequence minOccurs="0">
049: * <element ref="{http://jboss.org}jdbc-type"/>
050: * <element ref="{http://jboss.org}sql-type"/>
051: * </sequence>
052: * </sequence>
053: * </choice>
054: * </restriction>
055: * </complexContent>
056: * </complexType>
057: * </pre>
058: *
059: *
060: */
061: @XmlAccessorType(XmlAccessType.FIELD)
062: @XmlType(name="",propOrder={"groupName","modifiedStrategy","readStrategy","versionColumn","timestampColumn","keyGeneratorFactory","fieldType","fieldName","columnName","jdbcType","sqlType"})
063: @XmlRootElement(name="optimistic-locking")
064: public class OptimisticLocking {
065:
066: @XmlElement(name="group-name")
067: protected GroupName groupName;
068: @XmlElement(name="modified-strategy")
069: protected ModifiedStrategy modifiedStrategy;
070: @XmlElement(name="read-strategy")
071: protected ReadStrategy readStrategy;
072: @XmlElement(name="version-column")
073: protected VersionColumn versionColumn;
074: @XmlElement(name="timestamp-column")
075: protected TimestampColumn timestampColumn;
076: @XmlElement(name="key-generator-factory")
077: protected KeyGeneratorFactory keyGeneratorFactory;
078: @XmlElement(name="field-type")
079: protected FieldType fieldType;
080: @XmlElement(name="field-name")
081: protected FieldName fieldName;
082: @XmlElement(name="column-name")
083: protected ColumnName columnName;
084: @XmlElement(name="jdbc-type")
085: protected JdbcType jdbcType;
086: @XmlElement(name="sql-type")
087: protected SqlType sqlType;
088:
089: /**
090: * Gets the value of the groupName property.
091: *
092: * @return
093: * possible object is
094: * {@link GroupName }
095: *
096: */
097: public GroupName getGroupName() {
098: return groupName;
099: }
100:
101: /**
102: * Sets the value of the groupName property.
103: *
104: * @param value
105: * allowed object is
106: * {@link GroupName }
107: *
108: */
109: public void setGroupName(GroupName value) {
110: this .groupName = value;
111: }
112:
113: /**
114: * Gets the value of the modifiedStrategy property.
115: *
116: * @return
117: * possible object is
118: * {@link ModifiedStrategy }
119: *
120: */
121: public ModifiedStrategy getModifiedStrategy() {
122: return modifiedStrategy;
123: }
124:
125: /**
126: * Sets the value of the modifiedStrategy property.
127: *
128: * @param value
129: * allowed object is
130: * {@link ModifiedStrategy }
131: *
132: */
133: public void setModifiedStrategy(ModifiedStrategy value) {
134: this .modifiedStrategy = value;
135: }
136:
137: /**
138: * Gets the value of the readStrategy property.
139: *
140: * @return
141: * possible object is
142: * {@link ReadStrategy }
143: *
144: */
145: public ReadStrategy getReadStrategy() {
146: return readStrategy;
147: }
148:
149: /**
150: * Sets the value of the readStrategy property.
151: *
152: * @param value
153: * allowed object is
154: * {@link ReadStrategy }
155: *
156: */
157: public void setReadStrategy(ReadStrategy value) {
158: this .readStrategy = value;
159: }
160:
161: /**
162: * Gets the value of the versionColumn property.
163: *
164: * @return
165: * possible object is
166: * {@link VersionColumn }
167: *
168: */
169: public VersionColumn getVersionColumn() {
170: return versionColumn;
171: }
172:
173: /**
174: * Sets the value of the versionColumn property.
175: *
176: * @param value
177: * allowed object is
178: * {@link VersionColumn }
179: *
180: */
181: public void setVersionColumn(VersionColumn value) {
182: this .versionColumn = value;
183: }
184:
185: /**
186: * Gets the value of the timestampColumn property.
187: *
188: * @return
189: * possible object is
190: * {@link TimestampColumn }
191: *
192: */
193: public TimestampColumn getTimestampColumn() {
194: return timestampColumn;
195: }
196:
197: /**
198: * Sets the value of the timestampColumn property.
199: *
200: * @param value
201: * allowed object is
202: * {@link TimestampColumn }
203: *
204: */
205: public void setTimestampColumn(TimestampColumn value) {
206: this .timestampColumn = value;
207: }
208:
209: /**
210: * Gets the value of the keyGeneratorFactory property.
211: *
212: * @return
213: * possible object is
214: * {@link KeyGeneratorFactory }
215: *
216: */
217: public KeyGeneratorFactory getKeyGeneratorFactory() {
218: return keyGeneratorFactory;
219: }
220:
221: /**
222: * Sets the value of the keyGeneratorFactory property.
223: *
224: * @param value
225: * allowed object is
226: * {@link KeyGeneratorFactory }
227: *
228: */
229: public void setKeyGeneratorFactory(KeyGeneratorFactory value) {
230: this .keyGeneratorFactory = value;
231: }
232:
233: /**
234: * Gets the value of the fieldType property.
235: *
236: * @return
237: * possible object is
238: * {@link FieldType }
239: *
240: */
241: public FieldType getFieldType() {
242: return fieldType;
243: }
244:
245: /**
246: * Sets the value of the fieldType property.
247: *
248: * @param value
249: * allowed object is
250: * {@link FieldType }
251: *
252: */
253: public void setFieldType(FieldType value) {
254: this .fieldType = value;
255: }
256:
257: /**
258: * Gets the value of the fieldName property.
259: *
260: * @return
261: * possible object is
262: * {@link FieldName }
263: *
264: */
265: public FieldName getFieldName() {
266: return fieldName;
267: }
268:
269: /**
270: * Sets the value of the fieldName property.
271: *
272: * @param value
273: * allowed object is
274: * {@link FieldName }
275: *
276: */
277: public void setFieldName(FieldName value) {
278: this .fieldName = value;
279: }
280:
281: /**
282: * Gets the value of the columnName property.
283: *
284: * @return
285: * possible object is
286: * {@link ColumnName }
287: *
288: */
289: public ColumnName getColumnName() {
290: return columnName;
291: }
292:
293: /**
294: * Sets the value of the columnName property.
295: *
296: * @param value
297: * allowed object is
298: * {@link ColumnName }
299: *
300: */
301: public void setColumnName(ColumnName value) {
302: this .columnName = value;
303: }
304:
305: /**
306: * Gets the value of the jdbcType property.
307: *
308: * @return
309: * possible object is
310: * {@link JdbcType }
311: *
312: */
313: public JdbcType getJdbcType() {
314: return jdbcType;
315: }
316:
317: /**
318: * Sets the value of the jdbcType property.
319: *
320: * @param value
321: * allowed object is
322: * {@link JdbcType }
323: *
324: */
325: public void setJdbcType(JdbcType value) {
326: this .jdbcType = value;
327: }
328:
329: /**
330: * Gets the value of the sqlType property.
331: *
332: * @return
333: * possible object is
334: * {@link SqlType }
335: *
336: */
337: public SqlType getSqlType() {
338: return sqlType;
339: }
340:
341: /**
342: * Sets the value of the sqlType property.
343: *
344: * @param value
345: * allowed object is
346: * {@link SqlType }
347: *
348: */
349: public void setSqlType(SqlType value) {
350: this.sqlType = value;
351: }
352:
353: }
|