@Requires(classes=io.micronaut.transaction.jdbc.DataSourceTransactionManager.class) @EachBean(value=io.micronaut.transaction.jdbc.DataSourceTransactionManager.class) public class MicronautDataTransactionHandler extends AbstractTransactionHandler
didTxnRollback
Constructor and Description |
---|
MicronautDataTransactionHandler(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager)
Adapt a
DataSourceTransactionManager to Jdbi transaction provider interface. |
Modifier and Type | Method and Description |
---|---|
void |
begin(org.jdbi.v3.core.Handle handle) |
void |
commit(org.jdbi.v3.core.Handle handle) |
boolean |
isInTransaction(org.jdbi.v3.core.Handle handle) |
void |
releaseSavepoint(org.jdbi.v3.core.Handle handle,
java.lang.String savepointName) |
void |
rollback(org.jdbi.v3.core.Handle handle) |
void |
rollbackToSavepoint(org.jdbi.v3.core.Handle handle,
java.lang.String savepointName) |
void |
savepoint(org.jdbi.v3.core.Handle handle,
java.lang.String savepointName) |
inTransaction, inTransaction
public MicronautDataTransactionHandler(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager)
DataSourceTransactionManager
to Jdbi transaction provider interface.transactionManager
- The transaction managerpublic void begin(org.jdbi.v3.core.Handle handle)
public void commit(org.jdbi.v3.core.Handle handle)
public void rollback(org.jdbi.v3.core.Handle handle)
public boolean isInTransaction(org.jdbi.v3.core.Handle handle)
public void savepoint(org.jdbi.v3.core.Handle handle, java.lang.String savepointName)
public void rollbackToSavepoint(org.jdbi.v3.core.Handle handle, java.lang.String savepointName)
public void releaseSavepoint(org.jdbi.v3.core.Handle handle, java.lang.String savepointName)