Top Description Interfaces Annotations Classes Enums
[default module]

Package org.springframework.transaction.annotation

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

Spring's support for annotation-based transaction demarcation. Hooked into Spring's transaction interception infrastructure via a special TransactionAttributeSource implementation.

Interface Summary

Modifier and TypeInterface and Description
public interface
TransactionAnnotationParser

Strategy interface for parsing known transaction annotation types.

public interface
TransactionManagementConfigurer

Interface to be implemented by @Configuration classes annotated with @EnableTransactionManagement that wish to (or need to) explicitly specify the default PlatformTransactionManager bean (or ReactiveTransactionManager bean) to be used for annotation-driven transaction management, as opposed to the default approach of a by-type lookup.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
EnableTransactionManagement

Enables Spring's annotation-driven transaction management capability, similar to the support found in Spring's <tx:*> XML namespace.

public @interface
Transactional

Describes a transaction attribute on an individual method or on a class.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractTransactionManagementConfiguration

Abstract base @Configuration class providing common structure for enabling Spring's annotation-driven transaction management capability.

public class
AnnotationTransactionAttributeSource

Implementation of the org.springframework.transaction.interceptor.TransactionAttributeSource interface for working with transaction metadata in JDK 1.5+ annotation format.

public class
Ejb3TransactionAnnotationParser

Strategy implementation for parsing EJB3's jakarta.ejb.TransactionAttribute annotation.

public class
JtaTransactionAnnotationParser

Strategy implementation for parsing JTA 1.2's jakarta.transaction.Transactional annotation.

public class
ProxyTransactionManagementConfiguration

@Configuration class that registers the Spring infrastructure beans necessary to enable proxy-based annotation-driven transaction management.

public class
RestrictedTransactionalEventListenerFactory

Extension of TransactionalEventListenerFactory, detecting invalid transaction configuration for transactional event listeners: Transactional only supported with Propagation#REQUIRES_NEW and Propagation#NOT_SUPPORTED.

public class
SpringTransactionAnnotationParser

Strategy implementation for parsing Spring's Transactional annotation.

pack-priv class
TransactionBeanRegistrationAotProcessor

AOT BeanRegistrationAotProcessor that detects the presence of @Transactional on annotated elements and creates the required reflection hints.

public class
TransactionManagementConfigurationSelector

Selects which implementation of AbstractTransactionManagementConfiguration should be used based on the value of EnableTransactionManagement#mode on the importing @Configuration class.

pack-priv class
TransactionRuntimeHints

RuntimeHintsRegistrar implementation that registers runtime hints for transaction management.

Enum Summary

Modifier and TypeEnum and Description
public enum
Isolation

Enumeration that represents transaction isolation levels for use with the @Transactional annotation, corresponding to the TransactionDefinition interface.

public enum
Propagation

Enumeration that represents transaction propagation behaviors for use with the Transactional annotation, corresponding to the TransactionDefinition interface.