Uses of Interface
org.springframework.transaction.interceptor.TransactionAttribute
Package
Description
Transactional support classes for the Spring TestContext Framework.
Spring's support for annotation-based transaction demarcation.
AOP-based solution for declarative transaction demarcation.
-
Uses of TransactionAttribute in org.springframework.test.context.transaction
Modifier and TypeMethodDescriptionstatic TransactionAttribute
TestContextTransactionUtils.createDelegatingTransactionAttribute
(TestContext testContext, TransactionAttribute targetAttribute) Create a delegatingTransactionAttribute
for the supplied targetTransactionAttribute
andTestContext
, using the names of the test class and test method to build the name of the transaction.static TransactionAttribute
TestContextTransactionUtils.createDelegatingTransactionAttribute
(TestContext testContext, TransactionAttribute targetAttribute, boolean includeMethodName) Create a delegatingTransactionAttribute
for the supplied targetTransactionAttribute
andTestContext
, using the names of the test class and test method (if requested) to build the name of the transaction.Modifier and TypeMethodDescriptionstatic TransactionAttribute
TestContextTransactionUtils.createDelegatingTransactionAttribute
(TestContext testContext, TransactionAttribute targetAttribute) Create a delegatingTransactionAttribute
for the supplied targetTransactionAttribute
andTestContext
, using the names of the test class and test method to build the name of the transaction.static TransactionAttribute
TestContextTransactionUtils.createDelegatingTransactionAttribute
(TestContext testContext, TransactionAttribute targetAttribute, boolean includeMethodName) Create a delegatingTransactionAttribute
for the supplied targetTransactionAttribute
andTestContext
, using the names of the test class and test method (if requested) to build the name of the transaction. -
Uses of TransactionAttribute in org.springframework.transaction.annotation
Modifier and TypeMethodDescriptionprotected TransactionAttribute
AnnotationTransactionAttributeSource.determineTransactionAttribute
(AnnotatedElement element) Determine the transaction attribute for the given method or class.protected TransactionAttribute
AnnotationTransactionAttributeSource.findTransactionAttribute
(Class<?> clazz) protected TransactionAttribute
AnnotationTransactionAttributeSource.findTransactionAttribute
(Method method) Ejb3TransactionAnnotationParser.parseTransactionAnnotation
(TransactionAttribute ann) Ejb3TransactionAnnotationParser.parseTransactionAnnotation
(AnnotatedElement element) JtaTransactionAnnotationParser.parseTransactionAnnotation
(Transactional ann) JtaTransactionAnnotationParser.parseTransactionAnnotation
(AnnotatedElement element) protected TransactionAttribute
JtaTransactionAnnotationParser.parseTransactionAnnotation
(AnnotationAttributes attributes) SpringTransactionAnnotationParser.parseTransactionAnnotation
(AnnotatedElement element) protected TransactionAttribute
SpringTransactionAnnotationParser.parseTransactionAnnotation
(AnnotationAttributes attributes) SpringTransactionAnnotationParser.parseTransactionAnnotation
(Transactional ann) TransactionAnnotationParser.parseTransactionAnnotation
(AnnotatedElement element) Parse the transaction attribute for the given method or class, based on an annotation type understood by this parser. -
Uses of TransactionAttribute in org.springframework.transaction.interceptor
Modifier and TypeClassDescriptionclass
Spring's common transaction attribute implementation.class
TransactionAttribute
implementation that delegates all calls to a given targetTransactionAttribute
instance.class
TransactionAttribute implementation that works out whether a given exception should cause transaction rollback by applying a number of rollback rules, both positive and negative.Modifier and TypeMethodDescriptionprotected TransactionAttribute
AbstractFallbackTransactionAttributeSource.computeTransactionAttribute
(Method method, Class<?> targetClass) Same signature asAbstractFallbackTransactionAttributeSource.getTransactionAttribute(java.lang.reflect.Method, java.lang.Class<?>)
, but doesn't cache the result.protected abstract TransactionAttribute
AbstractFallbackTransactionAttributeSource.findTransactionAttribute
(Class<?> clazz) Subclasses need to implement this to return the transaction attribute for the given class, if any.protected abstract TransactionAttribute
AbstractFallbackTransactionAttributeSource.findTransactionAttribute
(Method method) Subclasses need to implement this to return the transaction attribute for the given method, if any.AbstractFallbackTransactionAttributeSource.getTransactionAttribute
(Method method, Class<?> targetClass) CompositeTransactionAttributeSource.getTransactionAttribute
(Method method, Class<?> targetClass) MatchAlwaysTransactionAttributeSource.getTransactionAttribute
(Method method, Class<?> targetClass) MethodMapTransactionAttributeSource.getTransactionAttribute
(Method method, Class<?> targetClass) NameMatchTransactionAttributeSource.getTransactionAttribute
(Method method, Class<?> targetClass) TransactionAspectSupport.TransactionInfo.getTransactionAttribute()
TransactionAttributeSource.getTransactionAttribute
(Method method, Class<?> targetClass) Return the transaction attribute for the given method, ornull
if the method is non-transactional.Modifier and TypeMethodDescriptionvoid
MethodMapTransactionAttributeSource.addTransactionalMethod
(Class<?> clazz, String mappedName, TransactionAttribute attr) Add an attribute for a transactional method.void
MethodMapTransactionAttributeSource.addTransactionalMethod
(Method method, TransactionAttribute attr) Add an attribute for a transactional method.void
MethodMapTransactionAttributeSource.addTransactionalMethod
(String name, TransactionAttribute attr) Add an attribute for a transactional method.void
NameMatchTransactionAttributeSource.addTransactionalMethod
(String methodName, TransactionAttribute attr) Add an attribute for a transactional method.protected TransactionAspectSupport.TransactionInfo
TransactionAspectSupport.createTransactionIfNecessary
(PlatformTransactionManager tm, TransactionAttribute txAttr, String joinpointIdentification) Create a transaction if necessary based on the given TransactionAttribute.protected TransactionManager
TransactionAspectSupport.determineTransactionManager
(TransactionAttribute txAttr) Deprecated.protected TransactionManager
TransactionAspectSupport.determineTransactionManager
(TransactionAttribute txAttr, Class<?> targetClass) Determine the specific transaction manager to use for the given transaction.protected TransactionAspectSupport.TransactionInfo
TransactionAspectSupport.prepareTransactionInfo
(PlatformTransactionManager tm, TransactionAttribute txAttr, String joinpointIdentification, TransactionStatus status) Prepare a TransactionInfo for the given attribute and status object.void
MatchAlwaysTransactionAttributeSource.setTransactionAttribute
(TransactionAttribute transactionAttribute) Allows a transaction attribute to be specified, using the String form, for example, "PROPAGATION_REQUIRED".Modifier and TypeMethodDescriptionprotected void
MethodMapTransactionAttributeSource.initMethodMap
(Map<String, TransactionAttribute> methodMap) Initialize the specified"methodMap"
, if any.void
MethodMapTransactionAttributeSource.setMethodMap
(Map<String, TransactionAttribute> methodMap) Set a name/attribute map, consisting of "<fully-qualified class name>.<method-name>
" method names (for example, "com.mycompany.mycode.MyClass.myMethod") andTransactionAttribute
instances (or Strings to be converted toTransactionAttribute
instances).void
NameMatchTransactionAttributeSource.setNameMap
(Map<String, TransactionAttribute> nameMap) Set a name/attribute map, consisting of method names (for example, "myMethod") andTransactionAttribute
instances.ModifierConstructorDescriptionCopy constructor.DelegatingTransactionAttribute
(TransactionAttribute targetAttribute) Create a DelegatingTransactionAttribute for the given target attribute.TransactionInfo
(PlatformTransactionManager transactionManager, TransactionAttribute transactionAttribute, String joinpointIdentification)
TransactionAspectSupport.determineTransactionManager(TransactionAttribute, Class)