Interface AccountDAO
-
- All Known Implementing Classes:
JPAAccountDAO
public interface AccountDAO
-
-
Field Summary
Fields Modifier and Type Field Description static StringGET_ACCOUNTS_QUERY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccountcreateAccount(Account account)List<Account>findAccounts(String queryName, Map<String,Object> params, int index, int count)AccountgetAccountById(long id)AccountgetAccountByNum(String acctNum)LedgergetLedger()doublegetLedgerAveBalance()longgetLedgerCount()doublegetLedgerSum()AccountremoveAccount(Account account)AccountupdateAccount(Account account)
-
-
-
Field Detail
-
GET_ACCOUNTS_QUERY
static final String GET_ACCOUNTS_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccountById
Account getAccountById(long id) throws DAOException
- Throws:
DAOException
-
getAccountByNum
Account getAccountByNum(String acctNum) throws DAOException
- Throws:
DAOException
-
createAccount
Account createAccount(Account account) throws DAOException
- Throws:
DAOException
-
updateAccount
Account updateAccount(Account account) throws DAOException
- Throws:
DAOException
-
removeAccount
Account removeAccount(Account account) throws DAOException
- Throws:
DAOException
-
findAccounts
List<Account> findAccounts(String queryName, Map<String,Object> params, int index, int count) throws DAOException
- Throws:
DAOException
-
getLedgerCount
long getLedgerCount() throws DAOException- Throws:
DAOException
-
getLedgerAveBalance
double getLedgerAveBalance() throws DAOException- Throws:
DAOException
-
getLedgerSum
double getLedgerSum() throws DAOException- Throws:
DAOException
-
getLedger
Ledger getLedger() throws DAOException
- Throws:
DAOException
-
-