Class SpringTransactionAwareJdbiUnitOfWorkFactory
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.transaction.spring.SpringTransactionAwareUnitOfWorkFactory<org.springframework.transaction.PlatformTransactionManager,SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork>
-
- dk.cloudcreate.essentials.components.foundation.transaction.spring.jdbi.SpringTransactionAwareJdbiUnitOfWorkFactory
-
- All Implemented Interfaces:
HandleAwareUnitOfWorkFactory<SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork>,UnitOfWorkFactory<SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork>
public class SpringTransactionAwareJdbiUnitOfWorkFactory extends SpringTransactionAwareUnitOfWorkFactory<org.springframework.transaction.PlatformTransactionManager,SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork> implements HandleAwareUnitOfWorkFactory<SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork>
ASpringTransactionAwareUnitOfWorkFactoryversion of theHandleAwareUnitOfWorkFactorywhich supports the standardHandleAwareUnitOfWorkusingJdbi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork
-
Field Summary
-
Fields inherited from class dk.cloudcreate.essentials.components.foundation.transaction.spring.SpringTransactionAwareUnitOfWorkFactory
defaultTransactionDefinition, transactionManager, unitOfWorkType
-
Fields inherited from interface dk.cloudcreate.essentials.components.foundation.transaction.UnitOfWorkFactory
unitOfWorkLog
-
-
Constructor Summary
Constructors Constructor Description SpringTransactionAwareJdbiUnitOfWorkFactory(org.jdbi.v3.core.Jdbi jdbi, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWorkcreateUnitOfWorkForFactoryManagedTransaction(org.springframework.transaction.TransactionStatus transaction)Create aUnitOfWorkwrapping a Spring Transaction managed by thisUnitOfWorkFactoryprotected SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWorkcreateUnitOfWorkForSpringManagedTransaction()Create aUnitOfWorkparticipating in an existing Spring Managed Transaction that isn't managed by thisUnitOfWorkFactoryorg.jdbi.v3.core.JdbigetJdbi()-
Methods inherited from class dk.cloudcreate.essentials.components.foundation.transaction.spring.SpringTransactionAwareUnitOfWorkFactory
afterCommitAfterCallingLifecycleCallbackResources, afterCommitBeforeCallingLifecycleCallbackResources, afterRollbackAfterCallingLifecycleCallbackResources, afterRollbackBeforeCallingLifecycleCallbackResources, beforeCommitAfterCallingLifecycleCallbackResources, beforeCommitBeforeCallingLifecycleCallbackResources, createDefaultTransactionDefinition, getCurrentUnitOfWork, getOrCreateNewUnitOfWork, getRequiredUnitOfWork, getTransactionManager, resolveUnitOfWorkType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dk.cloudcreate.essentials.components.foundation.transaction.UnitOfWorkFactory
getCurrentUnitOfWork, getOrCreateNewUnitOfWork, getRequiredUnitOfWork, usingUnitOfWork, usingUnitOfWork, withUnitOfWork, withUnitOfWork
-
-
-
-
Method Detail
-
getJdbi
public org.jdbi.v3.core.Jdbi getJdbi()
-
createUnitOfWorkForFactoryManagedTransaction
protected SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork createUnitOfWorkForFactoryManagedTransaction(org.springframework.transaction.TransactionStatus transaction)
Description copied from class:SpringTransactionAwareUnitOfWorkFactoryCreate aUnitOfWorkwrapping a Spring Transaction managed by thisUnitOfWorkFactory- Specified by:
createUnitOfWorkForFactoryManagedTransactionin classSpringTransactionAwareUnitOfWorkFactory<org.springframework.transaction.PlatformTransactionManager,SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork>- Parameters:
transaction- the Spring Transaction managed by thisUnitOfWorkFactory- Returns:
- a
UnitOfWorkwrapping the existing active Spring managed transaction
-
createUnitOfWorkForSpringManagedTransaction
protected SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork createUnitOfWorkForSpringManagedTransaction()
Description copied from class:SpringTransactionAwareUnitOfWorkFactoryCreate aUnitOfWorkparticipating in an existing Spring Managed Transaction that isn't managed by thisUnitOfWorkFactory- Specified by:
createUnitOfWorkForSpringManagedTransactionin classSpringTransactionAwareUnitOfWorkFactory<org.springframework.transaction.PlatformTransactionManager,SpringTransactionAwareJdbiUnitOfWorkFactory.SpringTransactionAwareHandleAwareUnitOfWork>- Returns:
- a
UnitOfWorkthat is participating in an existing Spring Managed Transaction that isn't managed by thisUnitOfWorkFactory
-
-