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.EJBLocalHome;
019: import javax.ejb.FinderException;
020: import java.util.Collection;
021:
022: public interface QueryLocalHome extends EJBLocalHome {
023: public QueryLocal findByPrimaryKey(Integer primaryKey)
024: throws FinderException;
025:
026: /**
027: * Select a single string field
028: */
029: public abstract String ejbSelectSingleStringField(String value)
030: throws FinderException;
031:
032: /**
033: * Select a single boolean field
034: */
035: public abstract boolean ejbSelectSingleBooleanField(boolean value)
036: throws FinderException;
037:
038: /**
039: * Select a single char field
040: */
041: public abstract char ejbSelectSingleCharField(char value)
042: throws FinderException;
043:
044: /**
045: * Select a single byte field
046: */
047: public abstract byte ejbSelectSingleByteField(byte value)
048: throws FinderException;
049:
050: /**
051: * Select a single short field
052: */
053: public abstract short ejbSelectSingleShortField(short value)
054: throws FinderException;
055:
056: /**
057: * Select a single int field
058: */
059: public abstract int ejbSelectSingleIntField(int value)
060: throws FinderException;
061:
062: /**
063: * Select a single long field
064: */
065: public abstract long ejbSelectSingleLongField(long value)
066: throws FinderException;
067:
068: /**
069: * Select a single float field
070: */
071: public abstract float ejbSelectSingleFloatField(float value)
072: throws FinderException;
073:
074: /**
075: * Select a single double field
076: */
077: public abstract double ejbSelectSingleDoubleField(double value)
078: throws FinderException;
079:
080: /**
081: * Select a collection string field
082: */
083: public abstract Collection ejbSelectCollectionStringField(
084: String value) throws FinderException;
085:
086: /**
087: * Select a collection boolean field
088: */
089: public abstract Collection ejbSelectCollectionBooleanField(
090: boolean test) throws FinderException;
091:
092: /**
093: * Select a collection char field
094: */
095: public abstract Collection ejbSelectCollectionCharField(char test)
096: throws FinderException;
097:
098: /**
099: * Select a collection byte field
100: */
101: public abstract Collection ejbSelectCollectionByteField(byte test)
102: throws FinderException;
103:
104: /**
105: * Select a collection short field
106: */
107: public abstract Collection ejbSelectCollectionShortField(short test)
108: throws FinderException;
109:
110: /**
111: * Select a collection int field
112: */
113: public abstract Collection ejbSelectCollectionIntField(int test)
114: throws FinderException;
115:
116: /**
117: * Select a collection long field
118: */
119: public abstract Collection ejbSelectCollectionLongField(long test)
120: throws FinderException;
121:
122: /**
123: * Select a collection float field
124: */
125: public abstract Collection ejbSelectCollectionFloatField(float test)
126: throws FinderException;
127:
128: /**
129: * Select a collection double field
130: */
131: public abstract Collection ejbSelectCollectionDoubleField(
132: double test) throws FinderException;
133:
134: /**
135: * Select a single local ejb
136: */
137: public abstract Object ejbSelectSingleLocalEjb(String test)
138: throws FinderException;
139:
140: /**
141: * Select a single remote ejb
142: */
143: public abstract Object ejbSelectSingleRemoteEjb(String test)
144: throws FinderException;
145:
146: /**
147: * Select a collection local ejb
148: */
149: public abstract Collection ejbSelectCollectionLocalEjb(String test)
150: throws FinderException;
151:
152: /**
153: * Select a collection remote ejb
154: */
155: public abstract Collection ejbSelectCollectionRemoteEjb(String test)
156: throws FinderException;
157: }
|