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 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 queryType complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType name="queryType">
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <sequence>
035: * <element name="query-method">
036: * <complexType>
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <element name="method-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
041: * <element name="method-params">
042: * <complexType>
043: * <complexContent>
044: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
045: * <sequence>
046: * <element name="method-param" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
047: * </sequence>
048: * </restriction>
049: * </complexContent>
050: * </complexType>
051: * </element>
052: * </sequence>
053: * </restriction>
054: * </complexContent>
055: * </complexType>
056: * </element>
057: * <element name="result-type-mapping" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
058: * <element name="ejb-ql" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
059: * <element name="no-cache-flush" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
060: * <element name="group-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
061: * </sequence>
062: * </restriction>
063: * </complexContent>
064: * </complexType>
065: * </pre>
066: *
067: *
068: */
069: @XmlAccessorType(XmlAccessType.FIELD)
070: @XmlType(name="queryType",propOrder={"queryMethod","resultTypeMapping","ejbQl","noCacheFlush","groupName"})
071: public class QueryType {
072:
073: @XmlElement(name="query-method",required=true)
074: protected QueryType.QueryMethod queryMethod;
075: @XmlElement(name="result-type-mapping")
076: protected String resultTypeMapping;
077: @XmlElement(name="ejb-ql")
078: protected String ejbQl;
079: @XmlElement(name="no-cache-flush")
080: protected Object noCacheFlush;
081: @XmlElement(name="group-name")
082: protected String groupName;
083:
084: /**
085: * Gets the value of the queryMethod property.
086: *
087: * @return
088: * possible object is
089: * {@link QueryType.QueryMethod }
090: *
091: */
092: public QueryType.QueryMethod getQueryMethod() {
093: return queryMethod;
094: }
095:
096: /**
097: * Sets the value of the queryMethod property.
098: *
099: * @param value
100: * allowed object is
101: * {@link QueryType.QueryMethod }
102: *
103: */
104: public void setQueryMethod(QueryType.QueryMethod value) {
105: this .queryMethod = value;
106: }
107:
108: /**
109: * Gets the value of the resultTypeMapping property.
110: *
111: * @return
112: * possible object is
113: * {@link String }
114: *
115: */
116: public String getResultTypeMapping() {
117: return resultTypeMapping;
118: }
119:
120: /**
121: * Sets the value of the resultTypeMapping property.
122: *
123: * @param value
124: * allowed object is
125: * {@link String }
126: *
127: */
128: public void setResultTypeMapping(String value) {
129: this .resultTypeMapping = value;
130: }
131:
132: /**
133: * Gets the value of the ejbQl property.
134: *
135: * @return
136: * possible object is
137: * {@link String }
138: *
139: */
140: public String getEjbQl() {
141: return ejbQl;
142: }
143:
144: /**
145: * Sets the value of the ejbQl property.
146: *
147: * @param value
148: * allowed object is
149: * {@link String }
150: *
151: */
152: public void setEjbQl(String value) {
153: this .ejbQl = value;
154: }
155:
156: /**
157: * Gets the value of the noCacheFlush property.
158: *
159: * @return
160: * possible object is
161: * {@link Object }
162: *
163: */
164: public Object getNoCacheFlush() {
165: return noCacheFlush;
166: }
167:
168: /**
169: * Sets the value of the noCacheFlush property.
170: *
171: * @param value
172: * allowed object is
173: * {@link Object }
174: *
175: */
176: public void setNoCacheFlush(Object value) {
177: this .noCacheFlush = value;
178: }
179:
180: /**
181: * Gets the value of the groupName property.
182: *
183: * @return
184: * possible object is
185: * {@link String }
186: *
187: */
188: public String getGroupName() {
189: return groupName;
190: }
191:
192: /**
193: * Sets the value of the groupName property.
194: *
195: * @param value
196: * allowed object is
197: * {@link String }
198: *
199: */
200: public void setGroupName(String value) {
201: this .groupName = value;
202: }
203:
204: /**
205: * <p>Java class for anonymous complex type.
206: *
207: * <p>The following schema fragment specifies the expected content contained within this class.
208: *
209: * <pre>
210: * <complexType>
211: * <complexContent>
212: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
213: * <sequence>
214: * <element name="method-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
215: * <element name="method-params">
216: * <complexType>
217: * <complexContent>
218: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
219: * <sequence>
220: * <element name="method-param" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
221: * </sequence>
222: * </restriction>
223: * </complexContent>
224: * </complexType>
225: * </element>
226: * </sequence>
227: * </restriction>
228: * </complexContent>
229: * </complexType>
230: * </pre>
231: *
232: *
233: */
234: @XmlAccessorType(XmlAccessType.FIELD)
235: @XmlType(name="",propOrder={"methodName","methodParams"})
236: public static class QueryMethod {
237:
238: @XmlElement(name="method-name",required=true)
239: protected String methodName;
240: @XmlElement(name="method-params",required=true)
241: protected QueryType.QueryMethod.MethodParams methodParams;
242:
243: /**
244: * Gets the value of the methodName property.
245: *
246: * @return
247: * possible object is
248: * {@link String }
249: *
250: */
251: public String getMethodName() {
252: return methodName;
253: }
254:
255: /**
256: * Sets the value of the methodName property.
257: *
258: * @param value
259: * allowed object is
260: * {@link String }
261: *
262: */
263: public void setMethodName(String value) {
264: this .methodName = value;
265: }
266:
267: /**
268: * Gets the value of the methodParams property.
269: *
270: * @return
271: * possible object is
272: * {@link QueryType.QueryMethod.MethodParams }
273: *
274: */
275: public QueryType.QueryMethod.MethodParams getMethodParams() {
276: return methodParams;
277: }
278:
279: /**
280: * Sets the value of the methodParams property.
281: *
282: * @param value
283: * allowed object is
284: * {@link QueryType.QueryMethod.MethodParams }
285: *
286: */
287: public void setMethodParams(
288: QueryType.QueryMethod.MethodParams value) {
289: this .methodParams = value;
290: }
291:
292: /**
293: * <p>Java class for anonymous complex type.
294: *
295: * <p>The following schema fragment specifies the expected content contained within this class.
296: *
297: * <pre>
298: * <complexType>
299: * <complexContent>
300: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
301: * <sequence>
302: * <element name="method-param" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
303: * </sequence>
304: * </restriction>
305: * </complexContent>
306: * </complexType>
307: * </pre>
308: *
309: *
310: */
311: @XmlAccessorType(XmlAccessType.FIELD)
312: @XmlType(name="",propOrder={"methodParam"})
313: public static class MethodParams {
314:
315: @XmlElement(name="method-param")
316: protected List<String> methodParam;
317:
318: /**
319: * Gets the value of the methodParam property.
320: *
321: * <p>
322: * This accessor method returns a reference to the live list,
323: * not a snapshot. Therefore any modification you make to the
324: * returned list will be present inside the JAXB object.
325: * This is why there is not a <CODE>set</CODE> method for the methodParam property.
326: *
327: * <p>
328: * For example, to add a new item, do as follows:
329: * <pre>
330: * getMethodParam().add(newItem);
331: * </pre>
332: *
333: *
334: * <p>
335: * Objects of the following type(s) are allowed in the list
336: * {@link String }
337: *
338: *
339: */
340: public List<String> getMethodParam() {
341: if (methodParam == null) {
342: methodParam = new ArrayList<String>();
343: }
344: return this.methodParam;
345: }
346:
347: }
348:
349: }
350:
351: }
|