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.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlType;
024:
025: /**
026: * <p>Java class for sql-query complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType name="sql-query">
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <sequence>
035: * <element name="sql-shape-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
036: * <element name="sql" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
037: * <element name="database-specific-sql" type="{http://www.bea.com/ns/weblogic/90}database-specific-sql" maxOccurs="unbounded" minOccurs="0"/>
038: * </sequence>
039: * </restriction>
040: * </complexContent>
041: * </complexType>
042: * </pre>
043: *
044: *
045: */
046: @XmlAccessorType(XmlAccessType.FIELD)
047: @XmlType(name="sql-query",propOrder={"sqlShapeName","sql","databaseSpecificSql"})
048: public class SqlQuery {
049:
050: @XmlElement(name="sql-shape-name")
051: protected String sqlShapeName;
052: protected String sql;
053: @XmlElement(name="database-specific-sql")
054: protected List<DatabaseSpecificSql> databaseSpecificSql;
055:
056: /**
057: * Gets the value of the sqlShapeName property.
058: *
059: * @return
060: * possible object is
061: * {@link String }
062: *
063: */
064: public String getSqlShapeName() {
065: return sqlShapeName;
066: }
067:
068: /**
069: * Sets the value of the sqlShapeName property.
070: *
071: * @param value
072: * allowed object is
073: * {@link String }
074: *
075: */
076: public void setSqlShapeName(String value) {
077: this .sqlShapeName = value;
078: }
079:
080: /**
081: * Gets the value of the sql property.
082: *
083: * @return
084: * possible object is
085: * {@link String }
086: *
087: */
088: public String getSql() {
089: return sql;
090: }
091:
092: /**
093: * Sets the value of the sql property.
094: *
095: * @param value
096: * allowed object is
097: * {@link String }
098: *
099: */
100: public void setSql(String value) {
101: this .sql = value;
102: }
103:
104: /**
105: * Gets the value of the databaseSpecificSql 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 databaseSpecificSql property.
112: *
113: * <p>
114: * For example, to add a new item, do as follows:
115: * <pre>
116: * getDatabaseSpecificSql().add(newItem);
117: * </pre>
118: *
119: *
120: * <p>
121: * Objects of the following type(s) are allowed in the list
122: * {@link DatabaseSpecificSql }
123: *
124: *
125: */
126: public List<DatabaseSpecificSql> getDatabaseSpecificSql() {
127: if (databaseSpecificSql == null) {
128: databaseSpecificSql = new ArrayList<DatabaseSpecificSql>();
129: }
130: return this.databaseSpecificSql;
131: }
132:
133: }
|