Package org.jdbi.v3.core.transaction
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)
.-
Constructor Summary
ConstructorDescription -
Method Summary
Methods inherited from class org.jdbi.v3.core.transaction.DelegatingTransactionHandler
begin, inTransaction, inTransaction, isInTransaction, releaseSavepoint, rollback, rollbackToSavepoint, savepoint
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.transaction.TransactionHandler
specialize
-
Constructor Details
-
RollbackOnlyTransactionHandler
public RollbackOnlyTransactionHandler() -
RollbackOnlyTransactionHandler
-
-
Method Details
-
commit
Description copied from interface:TransactionHandler
Commit the transaction.- Specified by:
commit
in interfaceTransactionHandler
- Overrides:
commit
in classDelegatingTransactionHandler
- Parameters:
handle
- the handle the commit is being performed on
-