public class DBIDecorator
extends org.skife.jdbi.v2.DBI
Constructor and Description |
---|
DBIDecorator(DataSource dataSource,
org.skife.jdbi.v2.DBI delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close(Object sqlObject) |
void |
define(String key,
Object value) |
protected org.skife.jdbi.v2.DBI |
getDelegate() |
org.skife.jdbi.v2.tweak.SQLLog |
getSQLLog() |
org.skife.jdbi.v2.tweak.StatementBuilderFactory |
getStatementBuilderFactory() |
org.skife.jdbi.v2.tweak.StatementLocator |
getStatementLocator() |
org.skife.jdbi.v2.tweak.StatementRewriter |
getStatementRewriter() |
org.skife.jdbi.v2.TimingCollector |
getTimingCollector() |
org.skife.jdbi.v2.tweak.TransactionHandler |
getTransactionHandler() |
<ReturnType> |
inTransaction(org.skife.jdbi.v2.TransactionCallback<ReturnType> callback) |
<ReturnType> |
inTransaction(org.skife.jdbi.v2.TransactionIsolationLevel isolation,
org.skife.jdbi.v2.TransactionCallback<ReturnType> callback) |
<SqlObjectType> |
onDemand(Class<SqlObjectType> sqlObjectType) |
org.skife.jdbi.v2.Handle |
open() |
<SqlObjectType> |
open(Class<SqlObjectType> sqlObjectType) |
static org.skife.jdbi.v2.Handle |
open(Connection connection) |
static org.skife.jdbi.v2.Handle |
open(DataSource dataSource) |
static org.skife.jdbi.v2.Handle |
open(String url) |
static org.skife.jdbi.v2.Handle |
open(String url,
Properties props) |
static org.skife.jdbi.v2.Handle |
open(String url,
String username,
String password) |
void |
registerArgumentFactory(org.skife.jdbi.v2.tweak.ArgumentFactory<?> argumentFactory) |
void |
registerContainerFactory(org.skife.jdbi.v2.tweak.ContainerFactory<?> factory) |
void |
registerMapper(org.skife.jdbi.v2.tweak.ResultSetMapper mapper) |
void |
registerMapper(org.skife.jdbi.v2.ResultSetMapperFactory factory) |
void |
setSQLLog(org.skife.jdbi.v2.tweak.SQLLog log) |
void |
setStatementBuilderFactory(org.skife.jdbi.v2.tweak.StatementBuilderFactory factory) |
void |
setStatementLocator(org.skife.jdbi.v2.tweak.StatementLocator locator) |
void |
setStatementRewriter(org.skife.jdbi.v2.tweak.StatementRewriter rewriter) |
void |
setTimingCollector(org.skife.jdbi.v2.TimingCollector timingCollector) |
void |
setTransactionHandler(org.skife.jdbi.v2.tweak.TransactionHandler handler) |
<ReturnType> |
withHandle(org.skife.jdbi.v2.tweak.HandleCallback<ReturnType> callback) |
public DBIDecorator(@Nonnull DataSource dataSource, @Nonnull org.skife.jdbi.v2.DBI delegate)
@Nonnull protected org.skife.jdbi.v2.DBI getDelegate()
public void setStatementLocator(org.skife.jdbi.v2.tweak.StatementLocator locator)
setStatementLocator
in class org.skife.jdbi.v2.DBI
public org.skife.jdbi.v2.tweak.StatementLocator getStatementLocator()
getStatementLocator
in class org.skife.jdbi.v2.DBI
public void setStatementRewriter(org.skife.jdbi.v2.tweak.StatementRewriter rewriter)
setStatementRewriter
in class org.skife.jdbi.v2.DBI
public org.skife.jdbi.v2.tweak.StatementRewriter getStatementRewriter()
getStatementRewriter
in class org.skife.jdbi.v2.DBI
public void setTransactionHandler(org.skife.jdbi.v2.tweak.TransactionHandler handler)
setTransactionHandler
in class org.skife.jdbi.v2.DBI
public org.skife.jdbi.v2.tweak.TransactionHandler getTransactionHandler()
getTransactionHandler
in class org.skife.jdbi.v2.DBI
public org.skife.jdbi.v2.Handle open()
open
in interface org.skife.jdbi.v2.IDBI
open
in class org.skife.jdbi.v2.DBI
public void registerMapper(org.skife.jdbi.v2.tweak.ResultSetMapper mapper)
registerMapper
in class org.skife.jdbi.v2.DBI
public void registerMapper(org.skife.jdbi.v2.ResultSetMapperFactory factory)
registerMapper
in class org.skife.jdbi.v2.DBI
public void define(String key, Object value)
define
in interface org.skife.jdbi.v2.IDBI
define
in class org.skife.jdbi.v2.DBI
public <ReturnType> ReturnType withHandle(org.skife.jdbi.v2.tweak.HandleCallback<ReturnType> callback) throws org.skife.jdbi.v2.exceptions.CallbackFailedException
withHandle
in interface org.skife.jdbi.v2.IDBI
withHandle
in class org.skife.jdbi.v2.DBI
org.skife.jdbi.v2.exceptions.CallbackFailedException
public <ReturnType> ReturnType inTransaction(org.skife.jdbi.v2.TransactionCallback<ReturnType> callback) throws org.skife.jdbi.v2.exceptions.CallbackFailedException
inTransaction
in interface org.skife.jdbi.v2.IDBI
inTransaction
in class org.skife.jdbi.v2.DBI
org.skife.jdbi.v2.exceptions.CallbackFailedException
public <ReturnType> ReturnType inTransaction(org.skife.jdbi.v2.TransactionIsolationLevel isolation, org.skife.jdbi.v2.TransactionCallback<ReturnType> callback) throws org.skife.jdbi.v2.exceptions.CallbackFailedException
inTransaction
in interface org.skife.jdbi.v2.IDBI
inTransaction
in class org.skife.jdbi.v2.DBI
org.skife.jdbi.v2.exceptions.CallbackFailedException
public <SqlObjectType> SqlObjectType open(Class<SqlObjectType> sqlObjectType)
open
in interface org.skife.jdbi.v2.IDBI
open
in class org.skife.jdbi.v2.DBI
public <SqlObjectType> SqlObjectType onDemand(Class<SqlObjectType> sqlObjectType)
onDemand
in interface org.skife.jdbi.v2.IDBI
onDemand
in class org.skife.jdbi.v2.DBI
public void close(Object sqlObject)
close
in interface org.skife.jdbi.v2.IDBI
close
in class org.skife.jdbi.v2.DBI
public static org.skife.jdbi.v2.Handle open(DataSource dataSource)
public static org.skife.jdbi.v2.Handle open(Connection connection)
public static org.skife.jdbi.v2.Handle open(String url)
public static org.skife.jdbi.v2.Handle open(String url, Properties props)
public void setStatementBuilderFactory(org.skife.jdbi.v2.tweak.StatementBuilderFactory factory)
setStatementBuilderFactory
in class org.skife.jdbi.v2.DBI
public org.skife.jdbi.v2.tweak.StatementBuilderFactory getStatementBuilderFactory()
getStatementBuilderFactory
in class org.skife.jdbi.v2.DBI
public void setSQLLog(org.skife.jdbi.v2.tweak.SQLLog log)
setSQLLog
in class org.skife.jdbi.v2.DBI
public org.skife.jdbi.v2.tweak.SQLLog getSQLLog()
getSQLLog
in class org.skife.jdbi.v2.DBI
public void setTimingCollector(org.skife.jdbi.v2.TimingCollector timingCollector)
setTimingCollector
in class org.skife.jdbi.v2.DBI
public org.skife.jdbi.v2.TimingCollector getTimingCollector()
getTimingCollector
in class org.skife.jdbi.v2.DBI
public void registerArgumentFactory(org.skife.jdbi.v2.tweak.ArgumentFactory<?> argumentFactory)
registerArgumentFactory
in class org.skife.jdbi.v2.DBI
public void registerContainerFactory(org.skife.jdbi.v2.tweak.ContainerFactory<?> factory)
registerContainerFactory
in class org.skife.jdbi.v2.DBI