| bank.BankApplication
BankApplication | public interface BankApplication extends EJBObject(Code) | | author: S.Chassande-Barrioz |
closeAccount | AccountInfo closeAccount(String agencyName, ClientId cid, String accountNumber) throws RemoteException(Code) | | Closes a account of a client.
Parameters: agencyName - is the agency name Parameters: cid - is a client identifier Parameters: accountNumber - is the number of account to close a AccountInfo if the account was removed. The accountInfoinstance contains the value of the account. If the account does not exista null value is returned |
createAccount | String createAccount(ClientId cid, String agencyName) throws RemoteException(Code) | | Create a new Account for a client of an agency
Parameters: cid - is a client identifier (last name, first name and address),the owner of the new account. Parameters: agencyName - the name of the agency of the client the account number |
createAgency | void createAgency(String name) throws RemoteException(Code) | | Create a new Bank in the bank
Parameters: name - is the name of the agency |
createClient | void createClient(ClientId cid, String agencyName) throws RemoteException(Code) | | Create a Client in an agency
Parameters: cid - is a client identifier (last name, first name and address) Parameters: agencyName - the the name of the agency of the new client |
getAccountInfo | AccountInfo getAccountInfo(String number, ClientId cid, String agencyName) throws RemoteException(Code) | | Retrieves information about an account of a client in an agency
Parameters: number - is the account number Parameters: cid - is the client identifier Parameters: agencyName - is the name of the agency |
getAccounts | List getAccounts(String agencyName, ClientId cid) throws RemoteException(Code) | | Retrieves a list of account for client.
Parameters: agencyName - is the name of the agency Parameters: cid - is the client identifier list of AccountInfo instance |
getClients | List getClients(String agencyName) throws RemoteException(Code) | | Retrieves a list of ClientId instance corresponding to the clients of
an agency.
Parameters: agencyName - is the name of the agency list of ClientId |
removeAgency | boolean removeAgency(String name) throws RemoteException(Code) | | Removes an agency only if this agency does not have any client
Parameters: name - is the name of the agency to remove true if the agency was removed |
removeClient | boolean removeClient(String agencyName, ClientId cid) throws RemoteException(Code) | | Removes a client from an agency only if the client does not have any Account
Parameters: agencyName - is the name of the agency hosting the client Parameters: cid - is a client identifier true if the client was removed |
|
|