Package ejava.projects.eleague.jdbc
Class JDBCClubDAO
- java.lang.Object
-
- ejava.projects.eleague.jdbc.JDBCClubDAO
-
-
Field Summary
Fields Modifier and Type Field Description private Connectionconnectionprivate static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description JDBCClubDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateVenue(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,voidsetConnection(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:ClubDAOThis method will create a new venue in the DB and update the provided object with the PK of that entity.- Specified by:
createVenuein interfaceClubDAO
-
getVenues
public List<Venue> getVenues(int index, int count) throws ClubDAOException
This method is left un-implemented,- Specified by:
getVenuesin interfaceClubDAO- Throws:
ClubDAOException
-
-