Class RollbackOnlyTransactionHandler
java.lang.Object
org.jdbi.v3.core.transaction.DelegatingTransactionHandler
org.jdbi.v3.core.transaction.RollbackOnlyTransactionHandler
- All Implemented Interfaces:
TransactionHandler
A transaction handler that always calls
DelegatingTransactionHandler.rollback(org.jdbi.v3.core.Handle) instead
of commit(org.jdbi.v3.core.Handle). Nothing this handler manages ever commits, so a
commit runs the Handle.afterRollback(Runnable) callbacks and never the Handle.afterCommit(Runnable)
callbacks.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Methods inherited from class DelegatingTransactionHandler
begin, inTransaction, inTransaction, isInTransaction, releaseSavepoint, rollback, rollbackToSavepoint, savepointMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TransactionHandler
specialize
-
Constructor Details
-
RollbackOnlyTransactionHandler
public RollbackOnlyTransactionHandler() -
RollbackOnlyTransactionHandler
-
-
Method Details
-
commit
Description copied from interface:TransactionHandlerCommit the transaction.- Specified by:
commitin interfaceTransactionHandler- Overrides:
commitin classDelegatingTransactionHandler- Parameters:
handle- the handle the commit is being performed on
-