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.wls;
017:
018: import java.math.BigInteger;
019: import java.util.ArrayList;
020: import java.util.List;
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlAttribute;
024: import javax.xml.bind.annotation.XmlElement;
025: import javax.xml.bind.annotation.XmlID;
026: import javax.xml.bind.annotation.XmlType;
027: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
028: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
029:
030: /**
031: * <p>Java class for table-map complex type.
032: *
033: * <p>The following schema fragment specifies the expected content contained within this class.
034: *
035: * <pre>
036: * <complexType name="table-map">
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <element name="table-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
041: * <element name="field-map" type="{http://www.bea.com/ns/weblogic/90}field-map" maxOccurs="unbounded" minOccurs="0"/>
042: * <element name="verify-rows" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
043: * <element name="verify-columns" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
044: * <element name="optimistic-column" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
045: * <element name="trigger-updates-optimistic-column" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
046: * <element name="version-column-initial-value" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
047: * </sequence>
048: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
049: * </restriction>
050: * </complexContent>
051: * </complexType>
052: * </pre>
053: *
054: *
055: */
056: @XmlAccessorType(XmlAccessType.FIELD)
057: @XmlType(name="table-map",propOrder={"tableName","fieldMap","verifyRows","verifyColumns","optimisticColumn","triggerUpdatesOptimisticColumn","versionColumnInitialValue"})
058: public class TableMap {
059:
060: @XmlElement(name="table-name",required=true)
061: protected String tableName;
062: @XmlElement(name="field-map")
063: protected List<FieldMap> fieldMap;
064: @XmlElement(name="verify-rows")
065: protected String verifyRows;
066: @XmlElement(name="verify-columns")
067: protected String verifyColumns;
068: @XmlElement(name="optimistic-column")
069: protected String optimisticColumn;
070: @XmlElement(name="trigger-updates-optimistic-column")
071: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
072: protected Boolean triggerUpdatesOptimisticColumn;
073: @XmlElement(name="version-column-initial-value")
074: protected BigInteger versionColumnInitialValue;
075: @XmlAttribute
076: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
077: @XmlID
078: protected String id;
079:
080: /**
081: * Gets the value of the tableName property.
082: *
083: * @return
084: * possible object is
085: * {@link String }
086: *
087: */
088: public String getTableName() {
089: return tableName;
090: }
091:
092: /**
093: * Sets the value of the tableName property.
094: *
095: * @param value
096: * allowed object is
097: * {@link String }
098: *
099: */
100: public void setTableName(String value) {
101: this .tableName = value;
102: }
103:
104: /**
105: * Gets the value of the fieldMap property.
106: *
107: * <p>
108: * This accessor method returns a reference to the live list,
109: * not a snapshot. Therefore any modification you make to the
110: * returned list will be present inside the JAXB object.
111: * This is why there is not a <CODE>set</CODE> method for the fieldMap property.
112: *
113: * <p>
114: * For example, to add a new item, do as follows:
115: * <pre>
116: * getFieldMap().add(newItem);
117: * </pre>
118: *
119: *
120: * <p>
121: * Objects of the following type(s) are allowed in the list
122: * {@link FieldMap }
123: *
124: *
125: */
126: public List<FieldMap> getFieldMap() {
127: if (fieldMap == null) {
128: fieldMap = new ArrayList<FieldMap>();
129: }
130: return this .fieldMap;
131: }
132:
133: /**
134: * Gets the value of the verifyRows property.
135: *
136: * @return
137: * possible object is
138: * {@link String }
139: *
140: */
141: public String getVerifyRows() {
142: return verifyRows;
143: }
144:
145: /**
146: * Sets the value of the verifyRows property.
147: *
148: * @param value
149: * allowed object is
150: * {@link String }
151: *
152: */
153: public void setVerifyRows(String value) {
154: this .verifyRows = value;
155: }
156:
157: /**
158: * Gets the value of the verifyColumns property.
159: *
160: * @return
161: * possible object is
162: * {@link String }
163: *
164: */
165: public String getVerifyColumns() {
166: return verifyColumns;
167: }
168:
169: /**
170: * Sets the value of the verifyColumns property.
171: *
172: * @param value
173: * allowed object is
174: * {@link String }
175: *
176: */
177: public void setVerifyColumns(String value) {
178: this .verifyColumns = value;
179: }
180:
181: /**
182: * Gets the value of the optimisticColumn property.
183: *
184: * @return
185: * possible object is
186: * {@link String }
187: *
188: */
189: public String getOptimisticColumn() {
190: return optimisticColumn;
191: }
192:
193: /**
194: * Sets the value of the optimisticColumn property.
195: *
196: * @param value
197: * allowed object is
198: * {@link String }
199: *
200: */
201: public void setOptimisticColumn(String value) {
202: this .optimisticColumn = value;
203: }
204:
205: /**
206: * Gets the value of the triggerUpdatesOptimisticColumn property.
207: *
208: * @return
209: * possible object is
210: * {@link Boolean }
211: *
212: */
213: public Boolean getTriggerUpdatesOptimisticColumn() {
214: return triggerUpdatesOptimisticColumn;
215: }
216:
217: /**
218: * Sets the value of the triggerUpdatesOptimisticColumn property.
219: *
220: * @param value
221: * allowed object is
222: * {@link Boolean }
223: *
224: */
225: public void setTriggerUpdatesOptimisticColumn(Boolean value) {
226: this .triggerUpdatesOptimisticColumn = value;
227: }
228:
229: /**
230: * Gets the value of the versionColumnInitialValue property.
231: *
232: * @return
233: * possible object is
234: * {@link BigInteger }
235: *
236: */
237: public BigInteger getVersionColumnInitialValue() {
238: return versionColumnInitialValue;
239: }
240:
241: /**
242: * Sets the value of the versionColumnInitialValue property.
243: *
244: * @param value
245: * allowed object is
246: * {@link BigInteger }
247: *
248: */
249: public void setVersionColumnInitialValue(BigInteger value) {
250: this .versionColumnInitialValue = value;
251: }
252:
253: /**
254: * Gets the value of the id property.
255: *
256: * @return
257: * possible object is
258: * {@link String }
259: *
260: */
261: public String getId() {
262: return id;
263: }
264:
265: /**
266: * Sets the value of the id property.
267: *
268: * @param value
269: * allowed object is
270: * {@link String }
271: *
272: */
273: public void setId(String value) {
274: this.id = value;
275: }
276:
277: }
|