public class Ejb3TransactionAnnotationParser extends java.lang.Object implements TransactionAnnotationParser, java.io.Serializable
javax.ejb.TransactionAttribute
annotation.Modifier and Type | Class and Description |
---|---|
private static class |
Ejb3TransactionAnnotationParser.Ejb3TransactionAttribute
EJB3-specific TransactionAttribute, implementing EJB3's rollback rules
which are based on annotated exceptions.
|
Constructor and Description |
---|
Ejb3TransactionAnnotationParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
TransactionAttribute |
parseTransactionAnnotation(java.lang.reflect.AnnotatedElement element)
Parse the transaction attribute for the given method or class,
based on an annotation type understood by this parser.
|
TransactionAttribute |
parseTransactionAnnotation(javax.ejb.TransactionAttribute ann)
Parse the transaction attribute for the given method or class,
based on an annotation type understood by this parser.
|
public TransactionAttribute parseTransactionAnnotation(java.lang.reflect.AnnotatedElement element)
TransactionAnnotationParser
This essentially parses a known transaction annotation into Spring's metadata
attribute class. Returns null
if the method/class is not transactional.
parseTransactionAnnotation
in interface TransactionAnnotationParser
element
- the annotated method or classnull
if none foundAnnotationTransactionAttributeSource.determineTransactionAttribute(java.lang.reflect.AnnotatedElement)
public TransactionAttribute parseTransactionAnnotation(javax.ejb.TransactionAttribute ann)
TransactionAnnotationParser
This essentially parses a known transaction annotation into Spring's metadata
attribute class. Returns null
if the method/class is not transactional.
parseTransactionAnnotation
in interface TransactionAnnotationParser
ann
- the annotated method or classnull
if none foundAnnotationTransactionAttributeSource.determineTransactionAttribute(java.lang.reflect.AnnotatedElement)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object