Package ejava.projects.esales.jdbc
Class JDBCAccountDAO
- java.lang.Object
-
- ejava.projects.esales.jdbc.JDBCAccountDAO
-
- All Implemented Interfaces:
AccountDAO
public class JDBCAccountDAO extends Object implements AccountDAO
-
-
Field Summary
Fields Modifier and Type Field Description private Connection
connection
private static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description JDBCAccountDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createAccount(Account account)
List<Account>
getAccounts(int index, int count)
void
setConnection(Connection connection)
-
-
-
Field Detail
-
log
private static org.slf4j.Logger log
-
connection
private Connection connection
-
-
Method Detail
-
setConnection
public void setConnection(Connection connection)
-
createAccount
public void createAccount(Account account)
- Specified by:
createAccount
in interfaceAccountDAO
-
getAccounts
public List<Account> getAccounts(int index, int count) throws AccountDAOException
- Specified by:
getAccounts
in interfaceAccountDAO
- Throws:
AccountDAOException
-
-