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.oejb2;
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.XmlType;
022:
023: /**
024: *
025: * Indicates that a separate table holds a list of table name/ID
026: * pairs and the server should fetch the next ID from that table.
027: *
028: *
029: * <p>Java class for sequence-tableType complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="sequence-tableType">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="table-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
039: * <element name="sequence-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
040: * <element name="batch-size" type="{http://www.w3.org/2001/XMLSchema}int"/>
041: * </sequence>
042: * </restriction>
043: * </complexContent>
044: * </complexType>
045: * </pre>
046: *
047: *
048: */
049: @XmlAccessorType(XmlAccessType.FIELD)
050: @XmlType(name="sequence-tableType",namespace="http://openejb.apache.org/xml/ns/pkgen-2.1",propOrder={"tableName","sequenceName","batchSize"})
051: public class SequenceTableType {
052:
053: @XmlElement(name="table-name",namespace="http://openejb.apache.org/xml/ns/pkgen-2.1",required=true)
054: protected String tableName;
055: @XmlElement(name="sequence-name",namespace="http://openejb.apache.org/xml/ns/pkgen-2.1",required=true)
056: protected String sequenceName;
057: @XmlElement(name="batch-size",namespace="http://openejb.apache.org/xml/ns/pkgen-2.1")
058: protected int batchSize;
059:
060: /**
061: * Gets the value of the tableName property.
062: *
063: * @return
064: * possible object is
065: * {@link String }
066: *
067: */
068: public String getTableName() {
069: return tableName;
070: }
071:
072: /**
073: * Sets the value of the tableName property.
074: *
075: * @param value
076: * allowed object is
077: * {@link String }
078: *
079: */
080: public void setTableName(String value) {
081: this .tableName = value;
082: }
083:
084: /**
085: * Gets the value of the sequenceName property.
086: *
087: * @return
088: * possible object is
089: * {@link String }
090: *
091: */
092: public String getSequenceName() {
093: return sequenceName;
094: }
095:
096: /**
097: * Sets the value of the sequenceName property.
098: *
099: * @param value
100: * allowed object is
101: * {@link String }
102: *
103: */
104: public void setSequenceName(String value) {
105: this .sequenceName = value;
106: }
107:
108: /**
109: * Gets the value of the batchSize property.
110: *
111: */
112: public int getBatchSize() {
113: return batchSize;
114: }
115:
116: /**
117: * Sets the value of the batchSize property.
118: *
119: */
120: public void setBatchSize(int value) {
121: this.batchSize = value;
122: }
123:
124: }
|