package cylikon.YahooEnt; import javax.ejb.EJBHome; import javax.ejb.CreateException; import javax.ejb.FinderException; import javax.ejb.RemoveException; import java.rmi.RemoteException; import java.sql.SQLException; import java.lang.ClassNotFoundException; public interface CategoryHome extends EJBHome { /* will allow us to create a simple CachedRowSet with only the site category number being specified */ public Category create(String cat_no) throws RemoteException,CreateException,SQLException,ClassNotFoundException; /* will allow us to create a CachedRowSet with a category number and name assigned to the category */ public Category create(String cat_no,String name) throws RemoteException,CreateException,SQLException,ClassNotFoundException; public Category findByPrimaryKey(CategoryPK pk) throws RemoteException,FinderException; public void remove() throws RemoteException,RemoveException; // overloaded methods, incorporating some bean-management public void remove(String cat__no) throws RemoteException,RemoveException; public Category findByPrimaryKey(String cat__no) throws FinderException,RemoteException; } //end interface