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
-
Field Summary
Fields inherited from class AbstractTransactionHandler
didTxnRollback -
Constructor Summary
ConstructorsConstructorDescriptionSpringTransactionHandler(org.springframework.transaction.PlatformTransactionManager transactionManager) Adapt aPlatformTransactionManagerto Jdbi transaction provider interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanisInTransaction(Handle handle) voidreleaseSavepoint(Handle handle, String savepointName) voidvoidrollbackToSavepoint(Handle handle, String savepointName) voidMethods inherited from class AbstractTransactionHandler
inTransaction, inTransactionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TransactionHandler
specialize
-
Constructor Details
-
SpringTransactionHandler
public SpringTransactionHandler(org.springframework.transaction.PlatformTransactionManager transactionManager) Adapt aPlatformTransactionManagerto Jdbi transaction provider interface.- Parameters:
transactionManager- The transaction manager
-
-
Method Details
-
begin
-
commit
-
rollback
-
isInTransaction
-
savepoint
-
rollbackToSavepoint
-
releaseSavepoint
-