1 package bank; 2 3 import javax.ejb.EJBObject ; 4 import java.rmi.RemoteException ; 5 import java.util.List ; 6 7 10 public interface BankApplication extends EJBObject { 11 12 15 19 void createAgency(String name) throws RemoteException ; 20 21 25 List getAgencies() throws RemoteException ; 26 27 32 boolean removeAgency(String name) throws RemoteException ; 33 34 35 38 43 void createClient(ClientId cid, String agencyName) throws RemoteException ; 44 45 51 List getClients(String agencyName) throws RemoteException ; 52 53 59 boolean removeClient(String agencyName, ClientId cid) throws RemoteException ; 60 61 62 65 72 String createAccount(ClientId cid, String agencyName) throws RemoteException ; 73 74 80 AccountInfo getAccountInfo(String number, 81 ClientId cid, 82 String agencyName) throws RemoteException ; 83 84 90 List getAccounts(String agencyName, ClientId cid) throws RemoteException ; 91 92 101 AccountInfo closeAccount(String agencyName, 102 ClientId cid, 103 String accountNumber) throws RemoteException ; 104 } 105 | Popular Tags |