Package | Description |
---|---|
org.springframework.transaction.annotation |
JDK 1.5+ annotation for transaction demarcation.
|
org.springframework.transaction.interceptor |
AOP-based solution for declarative transaction demarcation.
|
Modifier and Type | Method and Description |
---|---|
protected TransactionAttribute |
AnnotationTransactionAttributeSource.determineTransactionAttribute(AnnotatedElement ae)
Determine the transaction attribute for the given method or class.
|
protected TransactionAttribute |
AnnotationTransactionAttributeSource.findTransactionAttribute(Class<?> clazz) |
protected TransactionAttribute |
AnnotationTransactionAttributeSource.findTransactionAttribute(Method method) |
TransactionAttribute |
Ejb3TransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElement ae) |
TransactionAttribute |
SpringTransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElement ae) |
TransactionAttribute |
TransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElement ae)
Parse the transaction attribute for the given method or class,
based on a known annotation type.
|
TransactionAttribute |
SpringTransactionAnnotationParser.parseTransactionAnnotation(Transactional ann) |
TransactionAttribute |
Ejb3TransactionAnnotationParser.parseTransactionAnnotation(javax.ejb.TransactionAttribute ann) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTransactionAttribute
Transaction attribute that takes the EJB approach to rolling
back on runtime, but not checked, exceptions.
|
class |
DelegatingTransactionAttribute
TransactionAttribute implementation that delegates all calls to a given target
TransactionAttribute instance. |
class |
RuleBasedTransactionAttribute
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 Type | Method and Description |
---|---|
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.
|
TransactionAttribute |
TransactionAspectSupport.TransactionInfo.getTransactionAttribute() |
TransactionAttribute |
NameMatchTransactionAttributeSource.getTransactionAttribute(Method method,
Class<?> targetClass) |
TransactionAttribute |
TransactionAttributeSource.getTransactionAttribute(Method method,
Class<?> targetClass)
Return the transaction attribute for the given method,
or
null if the method is non-transactional. |
TransactionAttribute |
MethodMapTransactionAttributeSource.getTransactionAttribute(Method method,
Class<?> targetClass) |
TransactionAttribute |
AbstractFallbackTransactionAttributeSource.getTransactionAttribute(Method method,
Class<?> targetClass)
Determine the transaction attribute for this method invocation.
|
TransactionAttribute |
MatchAlwaysTransactionAttributeSource.getTransactionAttribute(Method method,
Class<?> targetClass) |
TransactionAttribute |
CompositeTransactionAttributeSource.getTransactionAttribute(Method method,
Class<?> targetClass) |
Modifier and Type | Method and Description |
---|---|
void |
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 |
NameMatchTransactionAttributeSource.addTransactionalMethod(String methodName,
TransactionAttribute attr)
Add an attribute for a transactional method.
|
void |
MethodMapTransactionAttributeSource.addTransactionalMethod(String name,
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 PlatformTransactionManager |
TransactionAspectSupport.determineTransactionManager(TransactionAttribute txAttr)
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 Type | Method and Description |
---|---|
protected 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 "FQCN.method" method names
(e.g.
|
void |
NameMatchTransactionAttributeSource.setNameMap(Map<String,TransactionAttribute> nameMap)
Set a name/attribute map, consisting of method names
(e.g.
|
Constructor and Description |
---|
DefaultTransactionAttribute(TransactionAttribute other)
Copy constructor.
|
DelegatingTransactionAttribute(TransactionAttribute targetAttribute)
Create a DelegatingTransactionAttribute for the given target attribute.
|
TransactionInfo(PlatformTransactionManager transactionManager,
TransactionAttribute transactionAttribute,
String joinpointIdentification) |
Copyright © 2015. All rights reserved.