public interface AccountDAO
| Modifier and Type | Field and Description |
|---|---|
static String |
GET_ACCOUNTS_QUERY |
| Modifier and Type | Method and Description |
|---|---|
Account |
createAccount(Account account) |
List<Account> |
findAccounts(String queryName,
Map<String,Object> params,
int index,
int count) |
Account |
getAccountById(long id) |
Account |
getAccountByNum(String acctNum) |
Ledger |
getLedger() |
double |
getLedgerAveBalance() |
long |
getLedgerCount() |
double |
getLedgerSum() |
Account |
removeAccount(Account account) |
Account |
updateAccount(Account account) |
static final String GET_ACCOUNTS_QUERY
Account getAccountById(long id) throws DAOException
DAOExceptionAccount getAccountByNum(String acctNum) throws DAOException
DAOExceptionAccount createAccount(Account account) throws DAOException
DAOExceptionAccount updateAccount(Account account) throws DAOException
DAOExceptionAccount removeAccount(Account account) throws DAOException
DAOExceptionList<Account> findAccounts(String queryName, Map<String,Object> params, int index, int count) throws DAOException
DAOExceptionlong getLedgerCount()
throws DAOException
DAOExceptiondouble getLedgerAveBalance()
throws DAOException
DAOExceptiondouble getLedgerSum()
throws DAOException
DAOExceptionLedger getLedger() throws DAOException
DAOExceptionCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.