1 package edu.rice.rubis.beans; 2 3 import javax.ejb.CreateException ; 4 import javax.ejb.EJBHome ; 5 import javax.ejb.FinderException ; 6 import javax.ejb.RemoveException ; 7 import java.rmi.RemoteException ; 8 import java.util.Collection ; 9 10 11 12 public interface CategoryHome extends EJBHome { 13 14 23 public Category create(String name) throws CreateException , RemoteException , RemoveException ; 24 25 26 34 public Category findByPrimaryKey(CategoryPK id) throws FinderException , RemoteException ; 35 36 37 44 public Category findByName(String categoryName) throws FinderException , RemoteException ; 45 46 47 52 public Collection findAllCategories() throws RemoteException , FinderException ; 53 } 54 | Popular Tags |