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 java.rmi.RemoteException;
019: import java.util.Collection;
020:
021: import javax.ejb.EJBHome;
022: import javax.ejb.FinderException;
023:
024: public interface QueryHome extends EJBHome {
025: public QueryRemote findByPrimaryKey(Integer primaryKey)
026: throws FinderException, RemoteException;
027:
028: /**
029: * Select a single string field
030: */
031: public abstract String selectSingleStringField(String value)
032: throws FinderException, RemoteException;
033:
034: /**
035: * Select a single boolean field
036: */
037: public abstract boolean selectSingleBooleanField(boolean value)
038: throws FinderException, RemoteException;
039:
040: /**
041: * Select a single char field
042: */
043: public abstract char selectSingleCharField(char value)
044: throws FinderException, RemoteException;
045:
046: /**
047: * Select a single byte field
048: */
049: public abstract byte selectSingleByteField(byte value)
050: throws FinderException, RemoteException;
051:
052: /**
053: * Select a single short field
054: */
055: public abstract short selectSingleShortField(short value)
056: throws FinderException, RemoteException;
057:
058: /**
059: * Select a single int field
060: */
061: public abstract int selectSingleIntField(int value)
062: throws FinderException, RemoteException;
063:
064: /**
065: * Select a single long field
066: */
067: public abstract long selectSingleLongField(long value)
068: throws FinderException, RemoteException;
069:
070: /**
071: * Select a single float field
072: */
073: public abstract float selectSingleFloatField(float value)
074: throws FinderException, RemoteException;
075:
076: /**
077: * Select a single double field
078: */
079: public abstract double selectSingleDoubleField(double value)
080: throws FinderException, RemoteException;
081:
082: /**
083: * Select a collection string field
084: */
085: public abstract Collection selectCollectionStringField()
086: throws FinderException, RemoteException;
087:
088: /**
089: * Select a collection boolean field
090: */
091: public abstract Collection selectCollectionBooleanField()
092: throws FinderException, RemoteException;
093:
094: /**
095: * Select a collection char field
096: */
097: public abstract Collection selectCollectionCharField()
098: throws FinderException, RemoteException;
099:
100: /**
101: * Select a collection byte field
102: */
103: public abstract Collection selectCollectionByteField()
104: throws FinderException, RemoteException;
105:
106: /**
107: * Select a collection short field
108: */
109: public abstract Collection selectCollectionShortField()
110: throws FinderException, RemoteException;
111:
112: /**
113: * Select a collection int field
114: */
115: public abstract Collection selectCollectionIntField()
116: throws FinderException, RemoteException;
117:
118: /**
119: * Select a collection long field
120: */
121: public abstract Collection selectCollectionLongField()
122: throws FinderException, RemoteException;
123:
124: /**
125: * Select a collection float field
126: */
127: public abstract Collection selectCollectionFloatField()
128: throws FinderException, RemoteException;
129:
130: /**
131: * Select a collection double field
132: */
133: public abstract Collection selectCollectionDoubleField()
134: throws FinderException, RemoteException;
135:
136: /**
137: * Select a single local ejb
138: */
139: public abstract Object selectSingleLocalEjb(int value)
140: throws FinderException, RemoteException;
141:
142: /**
143: * Select a single remote ejb
144: */
145: public abstract Object selectSingleRemoteEjb(int test)
146: throws FinderException, RemoteException;
147:
148: /**
149: * Select a collection local ejb
150: */
151: public abstract Collection selectCollectionLocalEjb()
152: throws FinderException, RemoteException;
153:
154: /**
155: * Select a collection remote ejb
156: */
157: public abstract Collection selectCollectionRemoteEjb()
158: throws FinderException, RemoteException;
159: }
|