Package org.jdbi.v3.core.transaction
The 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 SERIALIZABLE transactions
repeatedly until they succeed without transient serialization failures.
-
Interface Summary Interface Description TransactionHandler Interface which defines callbacks to be used when transaction methods are called on a handle. -
Class Summary Class Description CMTTransactionHandler Handler designed to behave properly in a J2EE CMT environment.DelegatingTransactionHandler Simple delegating subclass that just invokes its delegate.LocalTransactionHandler ThisTransactionHandleruses local JDBC transactions demarcated explicitly on the handle and passed through to be handled directly on the JDBC Connection instance.LocalTransactionHandler.BindingLocalTransactionHandler LocalTransactionHandler.BoundLocalTransactionHandler RollbackOnlyTransactionHandler A transaction handler that always callsDelegatingTransactionHandler.rollback(org.jdbi.v3.core.Handle)instead ofRollbackOnlyTransactionHandler.commit(org.jdbi.v3.core.Handle).SerializableTransactionRunner A TransactionHandler that automatically retries transactions that fail due to serialization failures, which can generally be resolved by automatically retrying the transaction.SerializableTransactionRunner.Configuration Configuration for serializable transaction runner. -
Enum Summary Enum Description TransactionIsolationLevel Supported transaction isolation levels. -
Exception Summary Exception Description TransactionException Thrown when there's a problem manipulating the transaction isolation level.UnableToManipulateTransactionIsolationLevelException Thrown whenJdbiisn't able to change the transaction isolation level.UnableToRestoreAutoCommitStateException Thrown after a transaction finishes if we can't reset its isolation level.