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.test.entity.ejbql;
017:
018: import javax.ejb.EntityBean;
019: import javax.ejb.EntityContext;
020: import javax.ejb.FinderException;
021: import java.util.Collection;
022:
023: public abstract class QueryBean implements EntityBean {
024: public abstract Integer getId();
025:
026: public abstract void setId(Integer id);
027:
028: public void setEntityContext(EntityContext ctx) {
029: }
030:
031: public void unsetEntityContext() {
032: }
033:
034: public void ejbActivate() {
035: }
036:
037: public void ejbPassivate() {
038: }
039:
040: public void ejbLoad() {
041: }
042:
043: public void ejbStore() {
044: }
045:
046: public void ejbRemove() {
047: }
048:
049: /**
050: * Select a single string field
051: */
052: public String ejbHomeSelectSingleStringField(String value)
053: throws FinderException {
054: return ejbSelectSingleStringField(value);
055: }
056:
057: public abstract String ejbSelectSingleStringField(String value)
058: throws FinderException;
059:
060: /**
061: * Select a single boolean field
062: */
063: public boolean ejbHomeSelectSingleBooleanField(boolean value)
064: throws FinderException {
065: return ejbSelectSingleBooleanField(value);
066: }
067:
068: public abstract boolean ejbSelectSingleBooleanField(boolean value)
069: throws FinderException;
070:
071: /**
072: * Select a single char field
073: */
074: public char ejbHomeSelectSingleCharField(char value)
075: throws FinderException {
076: return ejbSelectSingleCharField(value);
077: }
078:
079: public abstract char ejbSelectSingleCharField(char value)
080: throws FinderException;
081:
082: /**
083: * Select a single byte field
084: */
085: public byte ejbHomeSelectSingleByteField(byte value)
086: throws FinderException {
087: return ejbSelectSingleByteField(value);
088: }
089:
090: public abstract byte ejbSelectSingleByteField(byte value)
091: throws FinderException;
092:
093: /**
094: * Select a single short field
095: */
096: public short ejbHomeSelectSingleShortField(short value)
097: throws FinderException {
098: return ejbSelectSingleShortField(value);
099: }
100:
101: public abstract short ejbSelectSingleShortField(short value)
102: throws FinderException;
103:
104: /**
105: * Select a single int field
106: */
107: public int ejbHomeSelectSingleIntField(int value)
108: throws FinderException {
109: return ejbSelectSingleIntField(value);
110: }
111:
112: public abstract int ejbSelectSingleIntField(int value)
113: throws FinderException;
114:
115: /**
116: * Select a single long field
117: */
118: public long ejbHomeSelectSingleLongField(long value)
119: throws FinderException {
120: return ejbSelectSingleLongField(value);
121: }
122:
123: public abstract long ejbSelectSingleLongField(long value)
124: throws FinderException;
125:
126: /**
127: * Select a single float field
128: */
129: public float ejbHomeSelectSingleFloatField(float value)
130: throws FinderException {
131: return ejbSelectSingleFloatField(value);
132: }
133:
134: public abstract float ejbSelectSingleFloatField(float value)
135: throws FinderException;
136:
137: /**
138: * Select a single double field
139: */
140: public double ejbHomeSelectSingleDoubleField(double value)
141: throws FinderException {
142: return ejbSelectSingleDoubleField(value);
143: }
144:
145: public abstract double ejbSelectSingleDoubleField(double value)
146: throws FinderException;
147:
148: /**
149: * Select a collection string field
150: */
151: public Collection ejbHomeSelectCollectionStringField()
152: throws FinderException {
153: return ejbSelectCollectionStringField();
154: }
155:
156: public abstract Collection ejbSelectCollectionStringField()
157: throws FinderException;
158:
159: /**
160: * Select a collection boolean field
161: */
162: public Collection ejbHomeSelectCollectionBooleanField()
163: throws FinderException {
164: return ejbSelectCollectionBooleanField();
165: }
166:
167: public abstract Collection ejbSelectCollectionBooleanField()
168: throws FinderException;
169:
170: /**
171: * Select a collection char field
172: */
173: public Collection ejbHomeSelectCollectionCharField()
174: throws FinderException {
175: return ejbSelectCollectionCharField();
176: }
177:
178: public abstract Collection ejbSelectCollectionCharField()
179: throws FinderException;
180:
181: /**
182: * Select a collection byte field
183: */
184: public Collection ejbHomeSelectCollectionByteField()
185: throws FinderException {
186: return ejbSelectCollectionByteField();
187: }
188:
189: public abstract Collection ejbSelectCollectionByteField()
190: throws FinderException;
191:
192: /**
193: * Select a collection short field
194: */
195: public Collection ejbHomeSelectCollectionShortField()
196: throws FinderException {
197: return ejbSelectCollectionShortField();
198: }
199:
200: public abstract Collection ejbSelectCollectionShortField()
201: throws FinderException;
202:
203: /**
204: * Select a collection int field
205: */
206: public Collection ejbHomeSelectCollectionIntField()
207: throws FinderException {
208: return ejbSelectCollectionIntField();
209: }
210:
211: public abstract Collection ejbSelectCollectionIntField()
212: throws FinderException;
213:
214: /**
215: * Select a collection long field
216: */
217: public Collection ejbHomeSelectCollectionLongField()
218: throws FinderException {
219: return ejbSelectCollectionLongField();
220: }
221:
222: public abstract Collection ejbSelectCollectionLongField()
223: throws FinderException;
224:
225: /**
226: * Select a collection float field
227: */
228: public Collection ejbHomeSelectCollectionFloatField()
229: throws FinderException {
230: return ejbSelectCollectionFloatField();
231: }
232:
233: public abstract Collection ejbSelectCollectionFloatField()
234: throws FinderException;
235:
236: /**
237: * Select a collection double field
238: */
239: public Collection ejbHomeSelectCollectionDoubleField()
240: throws FinderException {
241: return ejbSelectCollectionDoubleField();
242: }
243:
244: public abstract Collection ejbSelectCollectionDoubleField()
245: throws FinderException;
246:
247: /**
248: * Select a single local ejb
249: */
250: public Object ejbHomeSelectSingleLocalEjb(int value)
251: throws FinderException {
252: return ejbSelectSingleLocalEjb(value);
253: }
254:
255: public abstract Object ejbSelectSingleLocalEjb(int value)
256: throws FinderException;
257:
258: /**
259: * Select a single remote ejb
260: */
261: public Object ejbHomeSelectSingleRemoteEjb(int value)
262: throws FinderException {
263: return ejbSelectSingleRemoteEjb(value);
264: }
265:
266: public abstract Object ejbSelectSingleRemoteEjb(int value)
267: throws FinderException;
268:
269: /**
270: * Select a collection local ejb
271: */
272: public Collection ejbHomeSelectCollectionLocalEjb()
273: throws FinderException {
274: return ejbSelectCollectionLocalEjb();
275: }
276:
277: public abstract Collection ejbSelectCollectionLocalEjb()
278: throws FinderException;
279:
280: /**
281: * Select a collection remote ejb
282: */
283: public Collection ejbHomeSelectCollectionRemoteEjb()
284: throws FinderException {
285: return ejbSelectCollectionRemoteEjb();
286: }
287:
288: public abstract Collection ejbSelectCollectionRemoteEjb()
289: throws FinderException;
290: }
|