@Requires(classes=io.micronaut.transaction.jdbc.DataSourceTransactionManager.class)
@EachBean(value=io.micronaut.transaction.jdbc.DataSourceTransactionManager.class)
public class MicronautTransactionProvider
extends java.lang.Object
implements org.jooq.TransactionProvider
Constructor and Description |
---|
MicronautTransactionProvider(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager)
Adapt a
DataSourceTransactionManager to jOOQ transaction provider interface. |
Modifier and Type | Method and Description |
---|---|
void |
begin(org.jooq.TransactionContext context) |
void |
commit(org.jooq.TransactionContext ctx) |
void |
rollback(org.jooq.TransactionContext ctx) |
public MicronautTransactionProvider(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager)
DataSourceTransactionManager
to jOOQ transaction provider interface.transactionManager
- The transaction managerpublic void begin(org.jooq.TransactionContext context) throws org.jooq.exception.DataAccessException
begin
in interface org.jooq.TransactionProvider
org.jooq.exception.DataAccessException
public void commit(org.jooq.TransactionContext ctx) throws org.jooq.exception.DataAccessException
commit
in interface org.jooq.TransactionProvider
org.jooq.exception.DataAccessException
public void rollback(org.jooq.TransactionContext ctx) throws org.jooq.exception.DataAccessException
rollback
in interface org.jooq.TransactionProvider
org.jooq.exception.DataAccessException