Package io.micronaut.configuration.jooq
Class MicronautTransactionProvider
java.lang.Object
io.micronaut.configuration.jooq.MicronautTransactionProvider
- All Implemented Interfaces:
TransactionProvider
@Requires(classes=io.micronaut.transaction.jdbc.DataSourceTransactionManager.class)
@EachBean(io.micronaut.transaction.jdbc.DataSourceTransactionManager.class)
public class MicronautTransactionProvider
extends Object
implements TransactionProvider
Allows Micronaut Transaction to be used with JOOQ.
- Since:
- 2.0.0
- Author:
- Lukas Eder, Andreas Ahlenstorf, Phillip Webb, Vladimir Kulev
-
Constructor Summary
ConstructorDescriptionMicronautTransactionProvider
(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager) Adapt aDataSourceTransactionManager
to jOOQ transaction provider interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin
(TransactionContext context) void
commit
(TransactionContext ctx) void
-
Constructor Details
-
MicronautTransactionProvider
public MicronautTransactionProvider(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager) Adapt aDataSourceTransactionManager
to jOOQ transaction provider interface.- Parameters:
transactionManager
- The transaction manager
-
-
Method Details
-
begin
- Specified by:
begin
in interfaceTransactionProvider
- Throws:
DataAccessException
-
commit
- Specified by:
commit
in interfaceTransactionProvider
- Throws:
DataAccessException
-
rollback
- Specified by:
rollback
in interfaceTransactionProvider
- Throws:
DataAccessException
-