Class SpringTransactionProvider
java.lang.Object
io.micronaut.configuration.jooq.spring.SpringTransactionProvider
- All Implemented Interfaces:
TransactionProvider
@Requires(classes=org.springframework.transaction.PlatformTransactionManager.class)
@EachBean(org.springframework.transaction.PlatformTransactionManager.class)
public class SpringTransactionProvider
extends Object
implements TransactionProvider
Allows Spring Transaction to be used with JOOQ.
- Since:
- 1.2.0
- Author:
- Lukas Eder, Andreas Ahlenstorf, Phillip Webb
-
Constructor Summary
ConstructorDescriptionSpringTransactionProvider
(org.springframework.transaction.PlatformTransactionManager transactionManager) Adapt aPlatformTransactionManager
to jOOQ transaction provider interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin
(TransactionContext context) void
commit
(TransactionContext ctx) void
-
Constructor Details
-
SpringTransactionProvider
public SpringTransactionProvider(org.springframework.transaction.PlatformTransactionManager transactionManager) Adapt aPlatformTransactionManager
to jOOQ transaction provider interface.- Parameters:
transactionManager
- The transaction manager
-
-
Method Details
-
begin
- Specified by:
begin
in interfaceTransactionProvider
-
commit
- Specified by:
commit
in interfaceTransactionProvider
-
rollback
- Specified by:
rollback
in interfaceTransactionProvider
-