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.XmlElement;
024: import javax.xml.bind.annotation.XmlType;
025:
026: /**
027: * <p>Java class for sql-shape complex type.
028: *
029: * <p>The following schema fragment specifies the expected content contained within this class.
030: *
031: * <pre>
032: * <complexType name="sql-shape">
033: * <complexContent>
034: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
035: * <sequence>
036: * <element name="description" type="{http://www.bea.com/ns/weblogic/90}description" minOccurs="0"/>
037: * <element name="sql-shape-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
038: * <element name="table" type="{http://www.bea.com/ns/weblogic/90}table" maxOccurs="unbounded" minOccurs="0"/>
039: * <element name="pass-through-columns" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
040: * <element name="ejb-relation-name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
041: * </sequence>
042: * </restriction>
043: * </complexContent>
044: * </complexType>
045: * </pre>
046: *
047: *
048: */
049: @XmlAccessorType(XmlAccessType.FIELD)
050: @XmlType(name="sql-shape",propOrder={"description","sqlShapeName","table","passThroughColumns","ejbRelationName"})
051: public class SqlShape {
052:
053: protected Description description;
054: @XmlElement(name="sql-shape-name",required=true)
055: protected String sqlShapeName;
056: protected List<Table> table;
057: @XmlElement(name="pass-through-columns")
058: protected BigInteger passThroughColumns;
059: @XmlElement(name="ejb-relation-name")
060: protected List<String> ejbRelationName;
061:
062: /**
063: * Gets the value of the description property.
064: *
065: * @return
066: * possible object is
067: * {@link Description }
068: *
069: */
070: public Description getDescription() {
071: return description;
072: }
073:
074: /**
075: * Sets the value of the description property.
076: *
077: * @param value
078: * allowed object is
079: * {@link Description }
080: *
081: */
082: public void setDescription(Description value) {
083: this .description = value;
084: }
085:
086: /**
087: * Gets the value of the sqlShapeName property.
088: *
089: * @return
090: * possible object is
091: * {@link String }
092: *
093: */
094: public String getSqlShapeName() {
095: return sqlShapeName;
096: }
097:
098: /**
099: * Sets the value of the sqlShapeName property.
100: *
101: * @param value
102: * allowed object is
103: * {@link String }
104: *
105: */
106: public void setSqlShapeName(String value) {
107: this .sqlShapeName = value;
108: }
109:
110: /**
111: * Gets the value of the table property.
112: *
113: * <p>
114: * This accessor method returns a reference to the live list,
115: * not a snapshot. Therefore any modification you make to the
116: * returned list will be present inside the JAXB object.
117: * This is why there is not a <CODE>set</CODE> method for the table property.
118: *
119: * <p>
120: * For example, to add a new item, do as follows:
121: * <pre>
122: * getTable().add(newItem);
123: * </pre>
124: *
125: *
126: * <p>
127: * Objects of the following type(s) are allowed in the list
128: * {@link Table }
129: *
130: *
131: */
132: public List<Table> getTable() {
133: if (table == null) {
134: table = new ArrayList<Table>();
135: }
136: return this .table;
137: }
138:
139: /**
140: * Gets the value of the passThroughColumns property.
141: *
142: * @return
143: * possible object is
144: * {@link BigInteger }
145: *
146: */
147: public BigInteger getPassThroughColumns() {
148: return passThroughColumns;
149: }
150:
151: /**
152: * Sets the value of the passThroughColumns property.
153: *
154: * @param value
155: * allowed object is
156: * {@link BigInteger }
157: *
158: */
159: public void setPassThroughColumns(BigInteger value) {
160: this .passThroughColumns = value;
161: }
162:
163: /**
164: * Gets the value of the ejbRelationName property.
165: *
166: * <p>
167: * This accessor method returns a reference to the live list,
168: * not a snapshot. Therefore any modification you make to the
169: * returned list will be present inside the JAXB object.
170: * This is why there is not a <CODE>set</CODE> method for the ejbRelationName property.
171: *
172: * <p>
173: * For example, to add a new item, do as follows:
174: * <pre>
175: * getEjbRelationName().add(newItem);
176: * </pre>
177: *
178: *
179: * <p>
180: * Objects of the following type(s) are allowed in the list
181: * {@link String }
182: *
183: *
184: */
185: public List<String> getEjbRelationName() {
186: if (ejbRelationName == null) {
187: ejbRelationName = new ArrayList<String>();
188: }
189: return this.ejbRelationName;
190: }
191:
192: }
|