01: // PersonHome.java
02:
03: package org.objectweb.jonas.jtests.beans.ebasic;
04:
05: import java.rmi.RemoteException;
06: import java.util.Collection;
07: import javax.ejb.CreateException;
08: import javax.ejb.EJBHome;
09: import javax.ejb.FinderException;
10:
11: /**
12: * Home interface for the bean Person
13: */
14: public interface PersonHome extends EJBHome {
15: Person create(int i, String n) throws CreateException,
16: RemoteException;
17:
18: Person findByPrimaryKey(java.lang.Object pk)
19: throws FinderException, RemoteException;
20:
21: Person findByNumber(int number) throws FinderException,
22: RemoteException;
23:
24: Person findByName(String name) throws FinderException,
25: RemoteException;
26:
27: Collection findAll() throws FinderException, RemoteException;
28: }
|