@Requires(classes=org.springframework.transaction.PlatformTransactionManager.class) @EachBean(value=org.springframework.transaction.PlatformTransactionManager.class) public class SpringTransactionProvider extends Object implements org.jooq.TransactionProvider
Constructor and Description |
---|
SpringTransactionProvider(org.springframework.transaction.PlatformTransactionManager transactionManager)
Adapt a
PlatformTransactionManager 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 SpringTransactionProvider(org.springframework.transaction.PlatformTransactionManager transactionManager)
PlatformTransactionManager
to jOOQ transaction provider interface.transactionManager
- The transaction managerpublic void begin(org.jooq.TransactionContext context)
begin
in interface org.jooq.TransactionProvider
public void commit(org.jooq.TransactionContext ctx)
commit
in interface org.jooq.TransactionProvider
public void rollback(org.jooq.TransactionContext ctx)
rollback
in interface org.jooq.TransactionProvider