View Javadoc
1   package ejava.examples.ejbsessionbank.dao;
2   
3   import java.util.List;
4   import java.util.Map;
5   
6   import ejava.examples.ejbsessionbank.bo.Account;
7   import ejava.examples.ejbsessionbank.bo.Ledger;
8   
9   public interface AccountDAO {
10      String GET_ACCOUNTS_QUERY = "getAccounts";
11      
12      Account getAccountById(long id) throws DAOException;
13      Account getAccountByNum(String acctNum) throws DAOException;
14      Account createAccount(Account account) throws DAOException;
15      Account updateAccount(Account account) throws DAOException;
16      Account removeAccount(Account account) throws DAOException;
17      List<Account> findAccounts(String queryName, Map<String, Object> params,
18              int index, int count) throws DAOException;
19      long getLedgerCount() throws DAOException;
20      double getLedgerAveBalance() throws DAOException;
21      double getLedgerSum() throws DAOException;
22      Ledger getLedger() throws DAOException;
23  }