transaction package implements the strategy
Jdbi uses to open and close transactions. The default
instance simply sets the transaction property on the connection.
There is also a runner that runs
repeatedly until they succeed without transient serialization failures.
InterfaceDescriptionInterface which defines callbacks to be used when transaction methods are called on a handle.
ClassDescriptionHandler designed to behave properly in a J2EE CMT environment.Simple delegating subclass that just invokes its delegate.This
TransactionHandleruses local JDBC transactions demarcated explicitly on the handle and passed through to be handled directly on the JDBC Connection instance.A transaction handler that always calls
RollbackOnlyTransactionHandler.commit(org.jdbi.v3.core.Handle).A TransactionHandler that automatically retries transactions that fail due to serialization failures, which can generally be resolved by automatically retrying the transaction.Configuration for serializable transaction runner
EnumDescriptionSupported transaction isolation levels.
ExceptionDescriptionThrown when there's a problem manipulating the transaction isolation level.Thrown when
Jdbiisn't able to change the transaction isolation level.Thrown after a transaction finishes if we can't reset its isolation level.