01: // AccountHome.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 Account
13: */
14: public interface AccountHome extends EJBHome {
15: Account create(int num, java.lang.String name)
16: throws CreateException, RemoteException;
17:
18: Account findByPrimaryKey(java.lang.Integer pk)
19: throws FinderException, RemoteException;
20:
21: Account findByNumber(int num) throws FinderException,
22: RemoteException;
23:
24: Collection findAll() throws FinderException, RemoteException;
25: }
|