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)
block
- The block to execute.<T> CompletionStage<T> withTransaction(JdbcSession.ConnectionFunction<T> block)
block
- The block to execute.