public interface JdbcSession
Modifier and Type | Interface and Description |
---|---|
static interface |
JdbcSession.ConnectionFunction<T>
SAM for using a connection.
|
Modifier and Type | Method and Description |
---|---|
<T> CompletionStage<T> |
withConnection(JdbcSession.ConnectionFunction<T> block)
Execute the given function with a connection.
|
<T> CompletionStage<T> |
withTransaction(JdbcSession.ConnectionFunction<T> block)
Execute the given function in a transaction.
|
<T> CompletionStage<T> withConnection(JdbcSession.ConnectionFunction<T> block)
This will execute the callback in a thread pool that is specifically designed for use with JDBC calls.
block
- The block to execute.<T> CompletionStage<T> withTransaction(JdbcSession.ConnectionFunction<T> block)
This will execute the callback in a thread pool that is specifically designed for use with JDBC calls.
block
- The block to execute.