Entity bean Remote home interface
package headfirst; import javax.ejb.*; import java.rmi.RemoteException; import java.util.Collection; public interface CustomerHome extends EJBHome { public Customer create(String last, String first) throws CreateException, RemoteException; public Customer findByPrimaryKey(String key) throws FinderException, RemoteException; public Collection findByCity(String city) throws FinderException, RemoteException; }
Get Head First EJB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.