1 27 28 package bank; 29 30 import java.math.BigDecimal ; 31 import java.rmi.RemoteException ; 32 import java.util.Collection ; 33 import javax.ejb.*; 34 35 36 39 public interface SavingsAccountRemoteHome extends EJBHome { 40 41 SavingsAccountRemote findByPrimaryKey(String key) throws FinderException, RemoteException ; 42 43 SavingsAccountRemote create(String id, String firstName, String lastName, BigDecimal balance) throws CreateException, RemoteException ; 44 45 Collection findInRange(BigDecimal low, BigDecimal high) throws FinderException, RemoteException ; 46 47 Collection findByLastName(String lastName) throws FinderException, RemoteException ; 48 49 void ChargeForLowBalance(BigDecimal minimumBalance, BigDecimal charge) throws InsufficientBalanceException, RemoteException ; 50 51 52 } 53 | Popular Tags |