Modifier and Type |
Method and Description |
JDBCRatingDAO |
build(Connection con)
Create a DAO backed by a database connection.
|
String |
getItemColumn() |
String |
getRatingColumn() |
SQLStatementFactory |
getStatementFactory()
Get the statement factory the DAO will use.
|
String |
getTableName() |
String |
getTimestampColumn() |
String |
getUserColumn() |
boolean |
isCloseWhenClosed() |
JDBCRatingDAOBuilder |
setCache(Cache<QueryKey,Object> cache)
Set the cache to use for user and item queries.
|
JDBCRatingDAOBuilder |
setCacheBuilder(CacheBuilder<? super QueryKey,Object> cb)
Set a cache builder to use for making the DAO's internal caches.
|
JDBCRatingDAOBuilder |
setCacheBuilder(CacheBuilderSpec spec)
Set a cache builder spec to use for making the DAO's internal caches.
|
JDBCRatingDAOBuilder |
setCacheBuilder(String spec)
Set the cache builder spec to use for making the DAO's internal caches.
|
JDBCRatingDAOBuilder |
setCloseWhenClosed(boolean close)
Configure whether the the DAO should close the database connection.
|
JDBCRatingDAOBuilder |
setItemColumn(String col) |
JDBCRatingDAOBuilder |
setRatingColumn(String col) |
JDBCRatingDAOBuilder |
setStatementFactory(SQLStatementFactory fac)
Set the statement factory to be used by the DAO.
|
JDBCRatingDAOBuilder |
setTableName(String table) |
JDBCRatingDAOBuilder |
setTimestampColumn(String col) |
JDBCRatingDAOBuilder |
setUserColumn(String col) |