|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--cscie160.project.bank.BankImpl
By David Cheung
CSCIE160 Project
05-16-2001
BankImpl class:
Implementes Bank interface.
This class is important for Account store house.
Used to create and retrieve accounts.
The functions are called by ATM.
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
BankImpl()
the contructor does the following: |
Method Summary | |
void |
createAccount(int accountNum,
int initBalance)
Creates account based on accountNumber and initial balance |
Account |
getAccount(int acctNum)
this does not do security check ie, require AccountInfo object because that is already checked by the security object. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BankImpl() throws java.rmi.RemoteException
call super()
initialize hashtable
creates the 3 accounts required in project spec.
Method Detail |
public Account getAccount(int acctNum) throws java.rmi.RemoteException
getAccount
in interface Bank
public void createAccount(int accountNum, int initBalance)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |