Package ejava.examples.ejbsessionbank.bl
Interface Teller
-
- All Known Implementing Classes:
TellerImpl
public interface Teller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OwneraddOwner(long ownerId, String accountNumber)AccountcloseAccount(String acctNum)AccountcreateAccount(String accNum)OwnercreateOwner(String firstName, String lastName, String ssn)AccountgetAccount(String acctNum)List<Account>getAccounts(int index, int count)LedgergetLedger()doublegetLedgerAveBalance()longgetLedgerCount()doublegetLedgerSum()List<Account>getOverdrawnAccounts(int index, int count)List<Owner>getOwners(int index, int count)OwneropenAccount(long ownerId, String accountNumber)voidremoveOwner(long ownerId)voidupdateAccount(Account account)
-
-
-
Method Detail
-
createAccount
Account createAccount(String accNum) throws BankException
- Throws:
BankException
-
getAccount
Account getAccount(String acctNum) throws BankException
- Throws:
BankException
-
closeAccount
Account closeAccount(String acctNum) throws BankException
- Throws:
BankException
-
updateAccount
void updateAccount(Account account) throws BankException
- Throws:
BankException
-
getOverdrawnAccounts
List<Account> getOverdrawnAccounts(int index, int count) throws BankException
- Throws:
BankException
-
getAccounts
List<Account> getAccounts(int index, int count) throws BankException
- Throws:
BankException
-
getLedgerCount
long getLedgerCount() throws BankException- Throws:
BankException
-
getLedgerAveBalance
double getLedgerAveBalance() throws BankException- Throws:
BankException
-
getLedgerSum
double getLedgerSum() throws BankException- Throws:
BankException
-
getLedger
Ledger getLedger() throws BankException
- Throws:
BankException
-
createOwner
Owner createOwner(String firstName, String lastName, String ssn) throws BankException
- Throws:
BankException
-
openAccount
Owner openAccount(long ownerId, String accountNumber) throws BankException
- Throws:
BankException
-
addOwner
Owner addOwner(long ownerId, String accountNumber) throws BankException
- Throws:
BankException
-
removeOwner
void removeOwner(long ownerId) throws BankException- Throws:
BankException
-
getOwners
List<Owner> getOwners(int index, int count) throws BankException
- Throws:
BankException
-
-