Class MicronautDataTransactionHandler
java.lang.Object
io.micronaut.configuration.jdbi.transaction.AbstractTransactionHandler
io.micronaut.configuration.jdbi.transaction.micronaut.MicronautDataTransactionHandler
- All Implemented Interfaces:
TransactionHandler
@Requires(classes=io.micronaut.transaction.jdbc.DataSourceTransactionManager.class)
@EachBean(io.micronaut.transaction.jdbc.DataSourceTransactionManager.class)
public class MicronautDataTransactionHandler
extends AbstractTransactionHandler
Allows Micronaut data Transaction to be used with Jdbi.
- Since:
- 1.4.0
- Author:
- Dan Maas
-
Field Summary
Fields inherited from class io.micronaut.configuration.jdbi.transaction.AbstractTransactionHandler
didTxnRollback
-
Constructor Summary
ConstructorDescriptionMicronautDataTransactionHandler
(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager) Adapt aDataSourceTransactionManager
to Jdbi transaction provider interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
boolean
isInTransaction
(Handle handle) void
releaseSavepoint
(Handle handle, String savepointName) void
void
rollbackToSavepoint
(Handle handle, String savepointName) void
Methods inherited from class io.micronaut.configuration.jdbi.transaction.AbstractTransactionHandler
inTransaction, inTransaction
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
specialize
-
Constructor Details
-
MicronautDataTransactionHandler
public MicronautDataTransactionHandler(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager) Adapt aDataSourceTransactionManager
to Jdbi transaction provider interface.- Parameters:
transactionManager
- The transaction manager
-
-
Method Details
-
begin
-
commit
-
rollback
-
isInTransaction
-
savepoint
-
rollbackToSavepoint
-
releaseSavepoint
-