Package ejava.projects.edmv.jdbc
Class JDBCPersonDAO
- java.lang.Object
-
- ejava.projects.edmv.jdbc.JDBCPersonDAO
-
-
Field Summary
Fields Modifier and Type Field Description private Connection
connection
private static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description JDBCPersonDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createPerson(Person person)
List<Person>
getPeople(int index, int count)
Person
getPerson(long id)
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)
-
createPerson
public void createPerson(Person person) throws DAOException
- Specified by:
createPerson
in interfacePersonDAO
- Throws:
DAOException
-
getPerson
public Person getPerson(long id) throws DAOException
- Specified by:
getPerson
in interfacePersonDAO
- Throws:
DAOException
-
getPeople
public List<Person> getPeople(int index, int count) throws DAOException
- Specified by:
getPeople
in interfacePersonDAO
- Throws:
DAOException
-
-