Top Description Interfaces Classes
[default module]

Package org.springframework.transaction.support

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

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.

Interface Summary

Modifier and TypeInterface and Description
public interface
CallbackPreferringPlatformTransactionManager

Extension of the org.springframework.transaction.PlatformTransactionManager interface, exposing a method for executing a given callback within a transaction.

public interface
ResourceHolder

Generic interface to be implemented by resource holders.

public interface
ResourceTransactionDefinition

Extended variant of TransactionDefinition, indicating a resource transaction and in particular whether the transactional resource is ready for local optimizations.

public interface
ResourceTransactionManager

Extension of the org.springframework.transaction.PlatformTransactionManager interface, indicating a native resource transaction manager, operating on a single target resource.

public interface
SmartTransactionObject

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.

public interface
TransactionCallback<
the result type
T
>

Callback interface for transactional code.

public interface
TransactionOperations

Interface specifying basic transaction execution operations.

public interface
TransactionSynchronization

Interface for transaction synchronization callbacks.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractPlatformTransactionManager

Abstract base class that implements Spring's standard transaction workflow, serving as basis for concrete platform transaction managers like org.springframework.transaction.jta.JtaTransactionManager.

public abstract class
public class
DefaultTransactionDefinition

Default implementation of the TransactionDefinition interface, offering bean-style configuration and sensible default values (PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false).

public class
public abstract class
DelegatingTransactionDefinition

TransactionDefinition implementation that delegates all calls to a given target TransactionDefinition instance.

public abstract class
ResourceHolderSupport

Convenient base class for resource holders.

public abstract class
ResourceHolderSynchronization<
the resource holder type
H extends ResourceHolder
,
the resource key type
K
>

TransactionSynchronization implementation that manages a ResourceHolder bound through TransactionSynchronizationManager.

public class
SimpleTransactionScope

A simple transaction-backed Scope implementation, delegating to TransactionSynchronizationManager's resource binding mechanism.

public class
public abstract class
TransactionCallbackWithoutResult

Simple convenience class for TransactionCallback implementation.

public abstract class
TransactionSynchronizationAdapter

Deprecated as of 5.3, in favor of the default methods on the TransactionSynchronization interface
Simple TransactionSynchronization adapter containing empty method implementations, for easier overriding of single methods.
public abstract class
TransactionSynchronizationManager

Central delegate that manages resources and transaction synchronizations per thread.

public abstract class
TransactionSynchronizationUtils

Utility methods for triggering specific TransactionSynchronization callback methods on all currently registered synchronizations.

public class
TransactionTemplate

Template class that simplifies programmatic transaction demarcation and transaction exception handling.

pack-priv class
WithoutTransactionOperations

A TransactionOperations implementation which executes a given TransactionCallback without an actual transaction.