Interface AccountDAO
-
- All Known Implementing Classes:
JPAAccountDAO
public interface AccountDAO
-
-
Field Summary
Fields Modifier and Type Field Description static String
GET_ACCOUNTS_QUERY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
-
-
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
-
-