Class SpringTransactionHandler

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

@Requires(classes=org.springframework.transaction.PlatformTransactionManager.class) @EachBean(org.springframework.transaction.PlatformTransactionManager.class) public class SpringTransactionHandler extends AbstractTransactionHandler
Allows Spring Transaction to be used with Jdbi.
Since:
1.4.0
Author:
Dan Maas
  • Constructor Details

    • SpringTransactionHandler

      public SpringTransactionHandler(org.springframework.transaction.PlatformTransactionManager transactionManager)
      Adapt a PlatformTransactionManager 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)