01: /*
02: * Software distributed under the License is distributed on an "AS IS" basis,
03: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
04: * License for the specific language governing rights and limitations under the
05: * License.
06: *-----------------------------------------------------------------------------
07: * $Id: RelativeLocalHome.java 846 2002-11-25 16:17:54Z chassand $
08: *-----------------------------------------------------------------------------
09: */
10: package org.objectweb.jonas.jtests.beans.relatives;
11:
12: import javax.ejb.CreateException;
13: import javax.ejb.EJBLocalHome;
14: import javax.ejb.FinderException;
15: import java.util.Collection;
16: import java.util.Date;
17:
18: /**
19: * Created on Sep 25, 2002
20: * @author Christophe Ney - cney@batisseurs.com
21: */
22: public interface RelativeLocalHome extends EJBLocalHome {
23:
24: /**
25: * create a new RelativeLocal.
26: * The fullName must be unique since it is used as primaryKey.
27: */
28: RelativeLocal create(String fullName, Date birthdate,
29: int luckyNumber) throws CreateException;
30:
31: /**
32: * find a relative using it's full name.
33: */
34: RelativeLocal findByPrimaryKey(String fullName)
35: throws FinderException;
36:
37: /**
38: * find the collection of relatives using the query in the deployment
39: * descriptor.
40: */
41: Collection findFromGivenQuery(String fullName, Date birthdate,
42: int luckyNumber) throws FinderException;
43:
44: }
|