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>
A
SpringTransactionAwareUnitOfWorkFactory version of the HandleAwareUnitOfWorkFactory which supports the standard HandleAwareUnitOfWork using Jdbi-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from class dk.cloudcreate.essentials.components.foundation.transaction.spring.SpringTransactionAwareUnitOfWorkFactory
defaultTransactionDefinition, transactionManager, unitOfWorkTypeFields inherited from interface dk.cloudcreate.essentials.components.foundation.transaction.UnitOfWorkFactory
unitOfWorkLog -
Constructor Summary
ConstructorsConstructorDescriptionSpringTransactionAwareJdbiUnitOfWorkFactory(org.jdbi.v3.core.Jdbi jdbi, org.springframework.transaction.PlatformTransactionManager platformTransactionManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateUnitOfWorkForFactoryManagedTransaction(org.springframework.transaction.TransactionStatus transaction) Create aUnitOfWorkwrapping a Spring Transaction managed by thisUnitOfWorkFactoryCreate 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, resolveUnitOfWorkTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dk.cloudcreate.essentials.components.foundation.transaction.UnitOfWorkFactory
getCurrentUnitOfWork, getOrCreateNewUnitOfWork, getRequiredUnitOfWork, usingUnitOfWork, usingUnitOfWork, withUnitOfWork, withUnitOfWork
-
Constructor Details
-
SpringTransactionAwareJdbiUnitOfWorkFactory
public SpringTransactionAwareJdbiUnitOfWorkFactory(org.jdbi.v3.core.Jdbi jdbi, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
-
-
Method Details
-
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
-