public class JDBCAccountDAO extends Object implements AccountDAO
Modifier and Type | Field and Description |
---|---|
private Connection |
connection |
private static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
JDBCAccountDAO() |
Modifier and Type | Method and Description |
---|---|
void |
createAccount(Account account) |
List<Account> |
getAccounts(int index,
int count) |
void |
setConnection(Connection connection) |
private static org.apache.commons.logging.Log log
private Connection connection
public void setConnection(Connection connection)
public void createAccount(Account account)
createAccount
in interface AccountDAO
public List<Account> getAccounts(int index, int count) throws AccountDAOException
getAccounts
in interface AccountDAO
AccountDAOException
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.