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 javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlAccessorType;
021: import javax.xml.bind.annotation.XmlAttribute;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.XmlType;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027:
028: /**
029: * <p>Java class for weblogic-query complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="weblogic-query">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="description" type="{http://www.bea.com/ns/weblogic/90}description" minOccurs="0"/>
039: * <element name="query-method" type="{http://www.bea.com/ns/weblogic/90}query-method"/>
040: * <choice minOccurs="0">
041: * <element name="ejb-ql-query" type="{http://www.bea.com/ns/weblogic/90}ejb-ql-query"/>
042: * <element name="sql-query" type="{http://www.bea.com/ns/weblogic/90}sql-query"/>
043: * </choice>
044: * <element name="max-elements" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
045: * <element name="include-updates" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
046: * <element name="sql-select-distinct" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
047: * <element name="enable-query-caching" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
048: * </sequence>
049: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
050: * </restriction>
051: * </complexContent>
052: * </complexType>
053: * </pre>
054: *
055: *
056: */
057: @XmlAccessorType(XmlAccessType.FIELD)
058: @XmlType(name="weblogic-query",propOrder={"description","queryMethod","ejbQlQuery","sqlQuery","maxElements","includeUpdates","sqlSelectDistinct","enableQueryCaching"})
059: public class WeblogicQuery {
060:
061: protected Description description;
062: @XmlElement(name="query-method",required=true)
063: protected QueryMethod queryMethod;
064: @XmlElement(name="ejb-ql-query")
065: protected EjbQlQuery ejbQlQuery;
066: @XmlElement(name="sql-query")
067: protected SqlQuery sqlQuery;
068: @XmlElement(name="max-elements")
069: protected BigInteger maxElements;
070: @XmlElement(name="include-updates")
071: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
072: protected Boolean includeUpdates;
073: @XmlElement(name="sql-select-distinct")
074: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
075: protected Boolean sqlSelectDistinct;
076: @XmlElement(name="enable-query-caching")
077: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
078: protected Boolean enableQueryCaching;
079: @XmlAttribute
080: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
081: @XmlID
082: protected String id;
083:
084: /**
085: * Gets the value of the description property.
086: *
087: * @return
088: * possible object is
089: * {@link Description }
090: *
091: */
092: public Description getDescription() {
093: return description;
094: }
095:
096: /**
097: * Sets the value of the description property.
098: *
099: * @param value
100: * allowed object is
101: * {@link Description }
102: *
103: */
104: public void setDescription(Description value) {
105: this .description = value;
106: }
107:
108: /**
109: * Gets the value of the queryMethod property.
110: *
111: * @return
112: * possible object is
113: * {@link QueryMethod }
114: *
115: */
116: public QueryMethod getQueryMethod() {
117: return queryMethod;
118: }
119:
120: /**
121: * Sets the value of the queryMethod property.
122: *
123: * @param value
124: * allowed object is
125: * {@link QueryMethod }
126: *
127: */
128: public void setQueryMethod(QueryMethod value) {
129: this .queryMethod = value;
130: }
131:
132: /**
133: * Gets the value of the ejbQlQuery property.
134: *
135: * @return
136: * possible object is
137: * {@link EjbQlQuery }
138: *
139: */
140: public EjbQlQuery getEjbQlQuery() {
141: return ejbQlQuery;
142: }
143:
144: /**
145: * Sets the value of the ejbQlQuery property.
146: *
147: * @param value
148: * allowed object is
149: * {@link EjbQlQuery }
150: *
151: */
152: public void setEjbQlQuery(EjbQlQuery value) {
153: this .ejbQlQuery = value;
154: }
155:
156: /**
157: * Gets the value of the sqlQuery property.
158: *
159: * @return
160: * possible object is
161: * {@link SqlQuery }
162: *
163: */
164: public SqlQuery getSqlQuery() {
165: return sqlQuery;
166: }
167:
168: /**
169: * Sets the value of the sqlQuery property.
170: *
171: * @param value
172: * allowed object is
173: * {@link SqlQuery }
174: *
175: */
176: public void setSqlQuery(SqlQuery value) {
177: this .sqlQuery = value;
178: }
179:
180: /**
181: * Gets the value of the maxElements property.
182: *
183: * @return
184: * possible object is
185: * {@link BigInteger }
186: *
187: */
188: public BigInteger getMaxElements() {
189: return maxElements;
190: }
191:
192: /**
193: * Sets the value of the maxElements property.
194: *
195: * @param value
196: * allowed object is
197: * {@link BigInteger }
198: *
199: */
200: public void setMaxElements(BigInteger value) {
201: this .maxElements = value;
202: }
203:
204: /**
205: * Gets the value of the includeUpdates property.
206: *
207: * @return
208: * possible object is
209: * {@link Boolean }
210: *
211: */
212: public Boolean getIncludeUpdates() {
213: return includeUpdates;
214: }
215:
216: /**
217: * Sets the value of the includeUpdates property.
218: *
219: * @param value
220: * allowed object is
221: * {@link Boolean }
222: *
223: */
224: public void setIncludeUpdates(Boolean value) {
225: this .includeUpdates = value;
226: }
227:
228: /**
229: * Gets the value of the sqlSelectDistinct property.
230: *
231: * @return
232: * possible object is
233: * {@link Boolean }
234: *
235: */
236: public Boolean getSqlSelectDistinct() {
237: return sqlSelectDistinct;
238: }
239:
240: /**
241: * Sets the value of the sqlSelectDistinct property.
242: *
243: * @param value
244: * allowed object is
245: * {@link Boolean }
246: *
247: */
248: public void setSqlSelectDistinct(Boolean value) {
249: this .sqlSelectDistinct = value;
250: }
251:
252: /**
253: * Gets the value of the enableQueryCaching property.
254: *
255: * @return
256: * possible object is
257: * {@link Boolean }
258: *
259: */
260: public Boolean getEnableQueryCaching() {
261: return enableQueryCaching;
262: }
263:
264: /**
265: * Sets the value of the enableQueryCaching property.
266: *
267: * @param value
268: * allowed object is
269: * {@link Boolean }
270: *
271: */
272: public void setEnableQueryCaching(Boolean value) {
273: this .enableQueryCaching = value;
274: }
275:
276: /**
277: * Gets the value of the id property.
278: *
279: * @return
280: * possible object is
281: * {@link String }
282: *
283: */
284: public String getId() {
285: return id;
286: }
287:
288: /**
289: * Sets the value of the id property.
290: *
291: * @param value
292: * allowed object is
293: * {@link String }
294: *
295: */
296: public void setId(String value) {
297: this.id = value;
298: }
299:
300: }
|