Class MicronautDataTransactionHandler

java.lang.Object
io.micronaut.configuration.jdbi.transaction.AbstractTransactionHandler
io.micronaut.configuration.jdbi.transaction.micronaut.MicronautDataTransactionHandler
All Implemented Interfaces:
TransactionHandler

@Requires(classes=io.micronaut.transaction.jdbc.DataSourceTransactionManager.class) @EachBean(io.micronaut.transaction.jdbc.DataSourceTransactionManager.class) public class MicronautDataTransactionHandler extends AbstractTransactionHandler
Allows Micronaut data Transaction to be used with Jdbi.
Since:
1.4.0
Author:
Dan Maas
  • Constructor Details

    • MicronautDataTransactionHandler

      public MicronautDataTransactionHandler(io.micronaut.transaction.jdbc.DataSourceTransactionManager transactionManager)
      Adapt a DataSourceTransactionManager to Jdbi transaction provider interface.
      Parameters:
      transactionManager - The transaction manager
  • Method Details

    • begin

      public void begin(Handle handle)
    • commit

      public void commit(Handle handle)
    • rollback

      public void rollback(Handle handle)
    • isInTransaction

      public boolean isInTransaction(Handle handle)
    • savepoint

      public void savepoint(Handle handle, String savepointName)
    • rollbackToSavepoint

      public void rollbackToSavepoint(Handle handle, String savepointName)
    • releaseSavepoint

      public void releaseSavepoint(Handle handle, String savepointName)