Package ejava.projects.eleague.jdbc
Class JDBCClubDAO
- java.lang.Object
-
- ejava.projects.eleague.jdbc.JDBCClubDAO
-
-
Field Summary
Fields Modifier and Type Field Description private Connection
connection
private static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description JDBCClubDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createVenue(Venue venue)
This method will create a new venue in the DB and update the provided object with the PK of that entity.List<Venue>
getVenues(int index, int count)
This method is left un-implemented,void
setConnection(Connection connection)
This method injects a connection to be used by all DAO methods.
-
-
-
Field Detail
-
logger
private static org.slf4j.Logger logger
-
connection
private Connection connection
-
-
Method Detail
-
setConnection
public void setConnection(Connection connection)
This method injects a connection to be used by all DAO methods.- Parameters:
connection
-
-
createVenue
public void createVenue(Venue venue)
Description copied from interface:ClubDAO
This method will create a new venue in the DB and update the provided object with the PK of that entity.- Specified by:
createVenue
in interfaceClubDAO
-
getVenues
public List<Venue> getVenues(int index, int count) throws ClubDAOException
This method is left un-implemented,- Specified by:
getVenues
in interfaceClubDAO
- Throws:
ClubDAOException
-
-