Package | Description |
---|---|
ratpack.jdbctx |
Modifier and Type | Method and Description |
---|---|
Transaction |
Transaction.autoBind(boolean autoBind)
Sets the auto binding behaviour of the transaction.
|
default Transaction |
Transaction.bind()
Binds this transaction to the current execution.
|
static Transaction |
Transaction.create(Factory<? extends Connection> connectionFactory)
Creates a new transaction.
|
static Transaction |
Transaction.get(Factory<? extends Connection> connectionFactory)
Returns the current transaction if present, otherwise a newly created transaction.
|
static Transaction |
Transaction.join()
Returns the current transaction if present
|
Modifier and Type | Method and Description |
---|---|
static Optional<Transaction> |
Transaction.current()
The current execution bound transaction, if any.
|