View Javadoc
1   package ejava.examples.ejbsessionbank.bl;
2   
3   import java.util.List;
4   
5   import ejava.examples.ejbsessionbank.bo.Account;
6   import ejava.examples.ejbsessionbank.bo.Ledger;
7   import ejava.examples.ejbsessionbank.bo.Owner;
8   
9   public interface Teller {
10      Account createAccount(String accNum) throws BankException;    
11      Account getAccount(String acctNum) throws BankException;    
12      Account closeAccount(String acctNum) throws BankException;    
13      void updateAccount(Account account) throws BankException;
14      List<Account> getOverdrawnAccounts(int index, int count) 
15          throws BankException;
16      List<Account> getAccounts(int index, int count) 
17          throws BankException;
18      long getLedgerCount() throws BankException;
19      double getLedgerAveBalance() throws BankException;
20      double getLedgerSum() throws BankException;
21      Ledger getLedger() throws BankException;
22      
23      Owner createOwner(String firstName, String lastName, String ssn)
24          throws BankException;
25      Owner openAccount(long ownerId, String accountNumber)
26          throws BankException;
27      Owner addOwner(long ownerId, String accountNumber)
28          throws BankException;
29      void removeOwner(long ownerId)
30          throws BankException;
31      List<Owner> getOwners(int index, int count)
32          throws BankException;    
33  }