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 theTransactionStatus
interface.Extension of thePlatformTransactionManager
interface, exposing a method for executing a given callback within a transaction.Default implementation of theTransactionDefinition
interface, offering bean-style configuration and sensible default values (PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false).Default implementation of theTransactionStatus
interface, used byAbstractPlatformTransactionManager
.TransactionDefinition
implementation that delegates all calls to a given targetTransactionDefinition
instance.Generic interface to be implemented by resource holders.Convenient base class for resource holders.TransactionSynchronization
implementation that manages aResourceHolder
bound throughTransactionSynchronizationManager
.Extended variant ofTransactionDefinition
, indicating a resource transaction and in particular whether the transactional resource is ready for local optimizations.Extension of thePlatformTransactionManager
interface, indicating a native resource transaction manager, operating on a single target resource.A simple transaction-backedScope
implementation, delegating toTransactionSynchronizationManager
's resource binding mechanism.A simpleTransactionStatus
implementation.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.Simple convenience class for TransactionCallback implementation.Interface specifying basic transaction execution operations.Interface for transaction synchronization callbacks.Deprecated.Central delegate that manages resources and transaction synchronizations per thread.Utility methods for triggering specificTransactionSynchronization
callback methods on all currently registered synchronizations.Template class that simplifies programmatic transaction demarcation and transaction exception handling.
TransactionSynchronization
interface