Package org.springframework.transaction.support
@NullMarked
package org.springframework.transaction.support
Support classes for the org.springframework.transaction package.
Provides an abstract base class for transaction manager implementations,
and a template plus callback for transaction demarcation.
-
ClassDescriptionAbstract base class that implements Spring's standard transaction workflow, serving as basis for concrete platform transaction managers like
JtaTransactionManager.Holder for suspended resources.Abstract base implementation of theTransactionStatusinterface.Extension of thePlatformTransactionManagerinterface, exposing a method for executing a given callback within a transaction.Default implementation of theTransactionDefinitioninterface, offering bean-style configuration and sensible default values (PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false).Default implementation of theTransactionStatusinterface, used byAbstractPlatformTransactionManager.TransactionDefinitionimplementation that delegates all calls to a given targetTransactionDefinitioninstance.Generic interface to be implemented by resource holders.Convenient base class for resource holders.ResourceHolderSynchronization<H extends ResourceHolder, K>TransactionSynchronizationimplementation that manages aResourceHolderbound throughTransactionSynchronizationManager.Extended variant ofTransactionDefinition, indicating a resource transaction and in particular whether the transactional resource is ready for local optimizations.Extension of thePlatformTransactionManagerinterface, indicating a native resource transaction manager, operating on a single target resource.A simple transaction-backedScopeimplementation, delegating toTransactionSynchronizationManager's resource binding mechanism.A simpleTransactionStatusimplementation.Interface to be implemented by transaction objects that are able to return an internal rollback-only marker, typically from another transaction that has participated and marked it as rollback-only.Callback interface for transactional code.Deprecated.Interface specifying basic transaction execution operations.Interface for transaction synchronization callbacks.Deprecated.as of 5.3, in favor of the default methods on theTransactionSynchronizationinterfaceCentral delegate that manages resources and transaction synchronizations per thread.Utility methods for triggering specificTransactionSynchronizationcallback methods on all currently registered synchronizations.Template class that simplifies programmatic transaction demarcation and transaction exception handling.
TransactionOperations.executeWithoutResult(Consumer)