01: // ProductHome.java
02:
03: package org.objectweb.jonas.stests.manyops;
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 Product
13: */
14: public interface ProductHome extends EJBHome {
15: Product create(String name, int num, int price)
16: throws CreateException, RemoteException;
17:
18: Product findByPrimaryKey(java.lang.String pk)
19: throws FinderException, RemoteException;
20:
21: Product findByNumber(int n) throws FinderException, RemoteException;
22:
23: Collection findAll() throws FinderException, RemoteException;
24: }
|