public class HandleDecorator extends Object implements org.skife.jdbi.v2.Handle
Constructor and Description |
---|
HandleDecorator(org.skife.jdbi.v2.Handle delegate) |
Modifier and Type | Method and Description |
---|---|
<SqlObjectType> |
attach(Class<SqlObjectType> sqlObjectType) |
org.skife.jdbi.v2.Handle |
begin() |
org.skife.jdbi.v2.Handle |
checkpoint(String name) |
void |
close() |
org.skife.jdbi.v2.Handle |
commit() |
org.skife.jdbi.v2.Batch |
createBatch() |
org.skife.jdbi.v2.Call |
createCall(String callableSql) |
org.skife.jdbi.v2.Query<Map<String,Object>> |
createQuery(String sql) |
org.skife.jdbi.v2.Script |
createScript(String name) |
org.skife.jdbi.v2.Update |
createStatement(String sql) |
void |
define(String key,
Object value) |
void |
execute(String sql,
Object... args) |
Connection |
getConnection() |
protected org.skife.jdbi.v2.Handle |
getDelegate() |
org.skife.jdbi.v2.SqlObjectContext |
getSqlObjectContext() |
org.skife.jdbi.v2.TransactionIsolationLevel |
getTransactionIsolationLevel() |
int |
insert(String sql,
Object... args) |
<ReturnType> |
inTransaction(org.skife.jdbi.v2.TransactionCallback<ReturnType> callback) |
<ReturnType> |
inTransaction(org.skife.jdbi.v2.TransactionIsolationLevel level,
org.skife.jdbi.v2.TransactionCallback<ReturnType> callback) |
boolean |
isClosed() |
boolean |
isInTransaction() |
org.skife.jdbi.v2.PreparedBatch |
prepareBatch(String sql) |
void |
registerArgumentFactory(org.skife.jdbi.v2.tweak.ArgumentFactory argumentFactory) |
void |
registerColumnMapper(org.skife.jdbi.v2.tweak.ResultColumnMapper mapper) |
void |
registerColumnMapper(org.skife.jdbi.v2.ResultColumnMapperFactory factory) |
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) |
org.skife.jdbi.v2.Handle |
release(String checkpointName) |
org.skife.jdbi.v2.Handle |
rollback() |
org.skife.jdbi.v2.Handle |
rollback(String checkpointName) |
List<Map<String,Object>> |
select(String sql,
Object... args) |
void |
setSQLLog(org.skife.jdbi.v2.tweak.SQLLog log) |
void |
setSqlObjectContext(org.skife.jdbi.v2.SqlObjectContext context) |
void |
setStatementBuilder(org.skife.jdbi.v2.tweak.StatementBuilder builder) |
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 |
setTransactionIsolation(int level) |
void |
setTransactionIsolation(org.skife.jdbi.v2.TransactionIsolationLevel level) |
int |
update(String sql,
Object... args) |
void |
useTransaction(org.skife.jdbi.v2.TransactionConsumer callback) |
void |
useTransaction(org.skife.jdbi.v2.TransactionIsolationLevel level,
org.skife.jdbi.v2.TransactionConsumer callback) |
public HandleDecorator(@Nonnull org.skife.jdbi.v2.Handle delegate)
@Nonnull protected org.skife.jdbi.v2.Handle getDelegate()
public Connection getConnection()
getConnection
in interface org.skife.jdbi.v2.Handle
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.skife.jdbi.v2.Handle
public boolean isClosed()
isClosed
in interface org.skife.jdbi.v2.Handle
public void define(String key, Object value)
define
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Handle begin()
begin
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Handle commit()
commit
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Handle rollback()
rollback
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Handle rollback(String checkpointName)
rollback
in interface org.skife.jdbi.v2.Handle
public boolean isInTransaction()
isInTransaction
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Query<Map<String,Object>> createQuery(String sql)
createQuery
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Update createStatement(String sql)
createStatement
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Call createCall(String callableSql)
createCall
in interface org.skife.jdbi.v2.Handle
public int insert(String sql, Object... args)
insert
in interface org.skife.jdbi.v2.Handle
public int update(String sql, Object... args)
update
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.PreparedBatch prepareBatch(String sql)
prepareBatch
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Batch createBatch()
createBatch
in interface org.skife.jdbi.v2.Handle
public <ReturnType> ReturnType inTransaction(org.skife.jdbi.v2.TransactionCallback<ReturnType> callback) throws org.skife.jdbi.v2.exceptions.TransactionFailedException
inTransaction
in interface org.skife.jdbi.v2.Handle
org.skife.jdbi.v2.exceptions.TransactionFailedException
public void useTransaction(org.skife.jdbi.v2.TransactionConsumer callback) throws org.skife.jdbi.v2.exceptions.TransactionFailedException
useTransaction
in interface org.skife.jdbi.v2.Handle
org.skife.jdbi.v2.exceptions.TransactionFailedException
public <ReturnType> ReturnType inTransaction(org.skife.jdbi.v2.TransactionIsolationLevel level, org.skife.jdbi.v2.TransactionCallback<ReturnType> callback) throws org.skife.jdbi.v2.exceptions.TransactionFailedException
inTransaction
in interface org.skife.jdbi.v2.Handle
org.skife.jdbi.v2.exceptions.TransactionFailedException
public void useTransaction(org.skife.jdbi.v2.TransactionIsolationLevel level, org.skife.jdbi.v2.TransactionConsumer callback) throws org.skife.jdbi.v2.exceptions.TransactionFailedException
useTransaction
in interface org.skife.jdbi.v2.Handle
org.skife.jdbi.v2.exceptions.TransactionFailedException
public List<Map<String,Object>> select(String sql, Object... args)
select
in interface org.skife.jdbi.v2.Handle
public void setStatementLocator(org.skife.jdbi.v2.tweak.StatementLocator locator)
setStatementLocator
in interface org.skife.jdbi.v2.Handle
public void setStatementRewriter(org.skife.jdbi.v2.tweak.StatementRewriter rewriter)
setStatementRewriter
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Script createScript(String name)
createScript
in interface org.skife.jdbi.v2.Handle
public void execute(String sql, Object... args)
execute
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Handle checkpoint(String name)
checkpoint
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.Handle release(String checkpointName)
release
in interface org.skife.jdbi.v2.Handle
public void setStatementBuilder(org.skife.jdbi.v2.tweak.StatementBuilder builder)
setStatementBuilder
in interface org.skife.jdbi.v2.Handle
public void setSQLLog(org.skife.jdbi.v2.tweak.SQLLog log)
setSQLLog
in interface org.skife.jdbi.v2.Handle
public void setTimingCollector(org.skife.jdbi.v2.TimingCollector timingCollector)
setTimingCollector
in interface org.skife.jdbi.v2.Handle
public void registerMapper(org.skife.jdbi.v2.tweak.ResultSetMapper mapper)
registerMapper
in interface org.skife.jdbi.v2.Handle
public void registerMapper(org.skife.jdbi.v2.ResultSetMapperFactory factory)
registerMapper
in interface org.skife.jdbi.v2.Handle
public void registerColumnMapper(org.skife.jdbi.v2.tweak.ResultColumnMapper mapper)
registerColumnMapper
in interface org.skife.jdbi.v2.Handle
public void registerColumnMapper(org.skife.jdbi.v2.ResultColumnMapperFactory factory)
registerColumnMapper
in interface org.skife.jdbi.v2.Handle
public <SqlObjectType> SqlObjectType attach(Class<SqlObjectType> sqlObjectType)
attach
in interface org.skife.jdbi.v2.Handle
public void setTransactionIsolation(org.skife.jdbi.v2.TransactionIsolationLevel level)
setTransactionIsolation
in interface org.skife.jdbi.v2.Handle
public void setTransactionIsolation(int level)
setTransactionIsolation
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.TransactionIsolationLevel getTransactionIsolationLevel()
getTransactionIsolationLevel
in interface org.skife.jdbi.v2.Handle
public void registerArgumentFactory(org.skife.jdbi.v2.tweak.ArgumentFactory argumentFactory)
registerArgumentFactory
in interface org.skife.jdbi.v2.Handle
public void registerContainerFactory(org.skife.jdbi.v2.tweak.ContainerFactory<?> factory)
registerContainerFactory
in interface org.skife.jdbi.v2.Handle
public void setSqlObjectContext(org.skife.jdbi.v2.SqlObjectContext context)
setSqlObjectContext
in interface org.skife.jdbi.v2.Handle
public org.skife.jdbi.v2.SqlObjectContext getSqlObjectContext()
getSqlObjectContext
in interface org.skife.jdbi.v2.Handle