3.5.4.1. Entity Bean Home Interface Example (EJB 2)

public interface AccountHome extends javax.ejb.EJBHome
{
  public Account create (String firstName, String lastName, double initialBalance)
    throws RemoteException, CreateException;
  public Account create (String accountNumber, double initialBalance)
    throws RemoteException, CreateException, LowInitialBalanceException;
  public Account createLargeAccount (String firstname, String lastname, double initialBalance)
    throws RemoteException, CreateException;
  ...
  public Account findByPrimaryKey (String AccountNumber)
    throws RemoteException, FinderException;
  ...
}

public interface EJBHome extends Remote
{
  public void remove (Object primaryKey) throws RemoteException, RemoveException;
}