Class AbstractTransactionHandler
java.lang.Object
io.micronaut.configuration.jdbi.transaction.AbstractTransactionHandler
- All Implemented Interfaces:
TransactionHandler
- Direct Known Subclasses:
MicronautDataTransactionHandler
,SpringTransactionHandler
Base class for using transaction management with Jdbi.
- Since:
- 1.4.0
- Author:
- Dan Maas
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R,
X extends Exception>
RinTransaction
(Handle handle, HandleCallback<R, X> callback) <R,
X extends Exception>
RinTransaction
(Handle handle, TransactionIsolationLevel level, HandleCallback<R, X> callback) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.transaction.TransactionHandler
begin, commit, isInTransaction, releaseSavepoint, rollback, rollbackToSavepoint, savepoint, specialize
-
Field Details
-
didTxnRollback
-
-
Constructor Details
-
AbstractTransactionHandler
public AbstractTransactionHandler()
-
-
Method Details
-
inTransaction
public <R,X extends Exception> R inTransaction(Handle handle, HandleCallback<R, X> callback) throws X- Specified by:
inTransaction
in interfaceTransactionHandler
- Throws:
X extends Exception
-
inTransaction
public <R,X extends Exception> R inTransaction(Handle handle, TransactionIsolationLevel level, HandleCallback<R, X> callback) throws X- Specified by:
inTransaction
in interfaceTransactionHandler
- Throws:
X extends Exception
-