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 Owner
addOwner(long ownerId, String accountNumber)
Account
closeAccount(String acctNum)
Account
createAccount(String accNum)
Owner
createOwner(String firstName, String lastName, String ssn)
Account
getAccount(String acctNum)
List<Account>
getAccounts(int index, int count)
Ledger
getLedger()
double
getLedgerAveBalance()
long
getLedgerCount()
double
getLedgerSum()
List<Account>
getOverdrawnAccounts(int index, int count)
List<Owner>
getOwners(int index, int count)
Owner
openAccount(long ownerId, String accountNumber)
void
removeOwner(long ownerId)
void
updateAccount(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
-
-