Uses of Interface
org.springframework.transaction.support.TransactionSynchronization
Packages that use TransactionSynchronization
Package
Description
Package providing integration of
Hibernate 5.x
with Spring concepts.
Transaction SPI implementation for JTA.
Support classes for the org.springframework.transaction package.
-
Uses of TransactionSynchronization in org.springframework.orm.hibernate5
Classes in org.springframework.orm.hibernate5 that implement TransactionSynchronizationModifier and TypeClassDescriptionclassSimple synchronization adapter that propagates aflush()call to the underlying Hibernate Session.classCallback for resource cleanup at the end of a Spring-managed transaction for a pre-bound Hibernate Session. -
Uses of TransactionSynchronization in org.springframework.transaction.jta
Method parameters in org.springframework.transaction.jta with type arguments of type TransactionSynchronizationModifier and TypeMethodDescriptionprotected voidJtaTransactionManager.doRegisterAfterCompletionWithJtaTransaction(JtaTransactionObject txObject, List<TransactionSynchronization> synchronizations) Register a JTA synchronization on the JTA TransactionManager, for callingafterCompletionon the given Spring TransactionSynchronizations.protected voidJtaTransactionManager.registerAfterCompletionWithExistingTransaction(Object transaction, List<TransactionSynchronization> synchronizations) Constructors in org.springframework.transaction.jta with parameters of type TransactionSynchronizationModifierConstructorDescriptionSpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization) Create a new SpringJtaSynchronizationAdapter for the given Spring TransactionSynchronization and JTA TransactionManager.SpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization, @Nullable TransactionManager jtaTransactionManager) Deprecated.SpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization, @Nullable UserTransaction jtaUserTransaction) Deprecated.as of 6.0.12 since JTA 1.1+ requires implicit rollback-only setting in case of an exception thrown inbeforeCompletion, so the regularSpringJtaSynchronizationAdapter(TransactionSynchronization)constructor is sufficient for all scenariosConstructor parameters in org.springframework.transaction.jta with type arguments of type TransactionSynchronizationModifierConstructorDescriptionJtaAfterCompletionSynchronization(List<TransactionSynchronization> synchronizations) Create a new JtaAfterCompletionSynchronization for the given synchronization objects. -
Uses of TransactionSynchronization in org.springframework.transaction.support
Classes in org.springframework.transaction.support that implement TransactionSynchronizationModifier and TypeClassDescriptionclassResourceHolderSynchronization<H extends ResourceHolder,K> TransactionSynchronizationimplementation that manages aResourceHolderbound throughTransactionSynchronizationManager.classDeprecated.as of 5.3, in favor of the default methods on theTransactionSynchronizationinterfaceMethods in org.springframework.transaction.support that return types with arguments of type TransactionSynchronizationModifier and TypeMethodDescriptionstatic List<TransactionSynchronization>TransactionSynchronizationManager.getSynchronizations()Return an unmodifiable snapshot list of all registered synchronizations for the current thread.Methods in org.springframework.transaction.support with parameters of type TransactionSynchronizationModifier and TypeMethodDescriptionstatic voidTransactionSynchronizationManager.registerSynchronization(TransactionSynchronization synchronization) Register a new transaction synchronization for the current thread.Method parameters in org.springframework.transaction.support with type arguments of type TransactionSynchronizationModifier and TypeMethodDescriptionstatic voidTransactionSynchronizationUtils.invokeAfterCommit(@Nullable List<TransactionSynchronization> synchronizations) Actually invoke theafterCommitmethods of the given Spring TransactionSynchronization objects.protected final voidAbstractPlatformTransactionManager.invokeAfterCompletion(List<TransactionSynchronization> synchronizations, int completionStatus) Actually invoke theafterCompletionmethods of the given Spring TransactionSynchronization objects.static voidTransactionSynchronizationUtils.invokeAfterCompletion(@Nullable List<TransactionSynchronization> synchronizations, int completionStatus) Actually invoke theafterCompletionmethods of the given Spring TransactionSynchronization objects.protected voidAbstractPlatformTransactionManager.registerAfterCompletionWithExistingTransaction(Object transaction, List<TransactionSynchronization> synchronizations) Register the given list of transaction synchronizations with the existing transaction.
beforeCompletion, so the regularSpringJtaSynchronizationAdapter(TransactionSynchronization)constructor is sufficient for all scenarios