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: * <sequence>
034: * <element ref="{http://jboss.org}table-name" minOccurs="0"/>
035: * <sequence minOccurs="0">
036: * <element ref="{http://jboss.org}datasource"/>
037: * <element ref="{http://jboss.org}datasource-mapping"/>
038: * </sequence>
039: * <element ref="{http://jboss.org}create-table" minOccurs="0"/>
040: * <element ref="{http://jboss.org}remove-table" minOccurs="0"/>
041: * <element ref="{http://jboss.org}post-table-create" minOccurs="0"/>
042: * <element ref="{http://jboss.org}row-locking" minOccurs="0"/>
043: * <element ref="{http://jboss.org}pk-constraint" minOccurs="0"/>
044: * </sequence>
045: * </restriction>
046: * </complexContent>
047: * </complexType>
048: * </pre>
049: *
050: *
051: */
052: @XmlAccessorType(XmlAccessType.FIELD)
053: @XmlType(name="",propOrder={"tableName","datasource","datasourceMapping","createTable","removeTable","postTableCreate","rowLocking","pkConstraint"})
054: @XmlRootElement(name="relation-table-mapping")
055: public class RelationTableMapping {
056:
057: @XmlElement(name="table-name")
058: protected TableName tableName;
059: protected Datasource datasource;
060: @XmlElement(name="datasource-mapping")
061: protected DatasourceMapping datasourceMapping;
062: @XmlElement(name="create-table")
063: protected CreateTable createTable;
064: @XmlElement(name="remove-table")
065: protected RemoveTable removeTable;
066: @XmlElement(name="post-table-create")
067: protected PostTableCreate postTableCreate;
068: @XmlElement(name="row-locking")
069: protected RowLocking rowLocking;
070: @XmlElement(name="pk-constraint")
071: protected PkConstraint pkConstraint;
072:
073: /**
074: * Gets the value of the tableName property.
075: *
076: * @return
077: * possible object is
078: * {@link TableName }
079: *
080: */
081: public TableName getTableName() {
082: return tableName;
083: }
084:
085: /**
086: * Sets the value of the tableName property.
087: *
088: * @param value
089: * allowed object is
090: * {@link TableName }
091: *
092: */
093: public void setTableName(TableName value) {
094: this .tableName = value;
095: }
096:
097: /**
098: * Gets the value of the datasource property.
099: *
100: * @return
101: * possible object is
102: * {@link Datasource }
103: *
104: */
105: public Datasource getDatasource() {
106: return datasource;
107: }
108:
109: /**
110: * Sets the value of the datasource property.
111: *
112: * @param value
113: * allowed object is
114: * {@link Datasource }
115: *
116: */
117: public void setDatasource(Datasource value) {
118: this .datasource = value;
119: }
120:
121: /**
122: * Gets the value of the datasourceMapping property.
123: *
124: * @return
125: * possible object is
126: * {@link DatasourceMapping }
127: *
128: */
129: public DatasourceMapping getDatasourceMapping() {
130: return datasourceMapping;
131: }
132:
133: /**
134: * Sets the value of the datasourceMapping property.
135: *
136: * @param value
137: * allowed object is
138: * {@link DatasourceMapping }
139: *
140: */
141: public void setDatasourceMapping(DatasourceMapping value) {
142: this .datasourceMapping = value;
143: }
144:
145: /**
146: * Gets the value of the createTable property.
147: *
148: * @return
149: * possible object is
150: * {@link CreateTable }
151: *
152: */
153: public CreateTable getCreateTable() {
154: return createTable;
155: }
156:
157: /**
158: * Sets the value of the createTable property.
159: *
160: * @param value
161: * allowed object is
162: * {@link CreateTable }
163: *
164: */
165: public void setCreateTable(CreateTable value) {
166: this .createTable = value;
167: }
168:
169: /**
170: * Gets the value of the removeTable property.
171: *
172: * @return
173: * possible object is
174: * {@link RemoveTable }
175: *
176: */
177: public RemoveTable getRemoveTable() {
178: return removeTable;
179: }
180:
181: /**
182: * Sets the value of the removeTable property.
183: *
184: * @param value
185: * allowed object is
186: * {@link RemoveTable }
187: *
188: */
189: public void setRemoveTable(RemoveTable value) {
190: this .removeTable = value;
191: }
192:
193: /**
194: * Gets the value of the postTableCreate property.
195: *
196: * @return
197: * possible object is
198: * {@link PostTableCreate }
199: *
200: */
201: public PostTableCreate getPostTableCreate() {
202: return postTableCreate;
203: }
204:
205: /**
206: * Sets the value of the postTableCreate property.
207: *
208: * @param value
209: * allowed object is
210: * {@link PostTableCreate }
211: *
212: */
213: public void setPostTableCreate(PostTableCreate value) {
214: this .postTableCreate = value;
215: }
216:
217: /**
218: * Gets the value of the rowLocking property.
219: *
220: * @return
221: * possible object is
222: * {@link RowLocking }
223: *
224: */
225: public RowLocking getRowLocking() {
226: return rowLocking;
227: }
228:
229: /**
230: * Sets the value of the rowLocking property.
231: *
232: * @param value
233: * allowed object is
234: * {@link RowLocking }
235: *
236: */
237: public void setRowLocking(RowLocking value) {
238: this .rowLocking = value;
239: }
240:
241: /**
242: * Gets the value of the pkConstraint property.
243: *
244: * @return
245: * possible object is
246: * {@link PkConstraint }
247: *
248: */
249: public PkConstraint getPkConstraint() {
250: return pkConstraint;
251: }
252:
253: /**
254: * Sets the value of the pkConstraint property.
255: *
256: * @param value
257: * allowed object is
258: * {@link PkConstraint }
259: *
260: */
261: public void setPkConstraint(PkConstraint value) {
262: this.pkConstraint = value;
263: }
264:
265: }
|