public class MatchAlwaysTransactionAttributeSource extends Object implements TransactionAttributeSource, Serializable
TransactionProxyFactoryBean
,
BeanNameAutoProxyCreator
,
Serialized FormConstructor and Description |
---|
MatchAlwaysTransactionAttributeSource() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
TransactionAttribute |
getTransactionAttribute(Method method,
Class<?> targetClass)
Return the transaction attribute for the given method,
or
null if the method is non-transactional. |
int |
hashCode() |
void |
setTransactionAttribute(TransactionAttribute transactionAttribute)
Allows a transaction attribute to be specified, using the String form, for
example, "PROPAGATION_REQUIRED".
|
String |
toString() |
public MatchAlwaysTransactionAttributeSource()
public void setTransactionAttribute(TransactionAttribute transactionAttribute)
transactionAttribute
- the String form of the transactionAttribute to use.TransactionAttributeEditor
@Nullable public TransactionAttribute getTransactionAttribute(Method method, @Nullable Class<?> targetClass)
TransactionAttributeSource
null
if the method is non-transactional.getTransactionAttribute
in interface TransactionAttributeSource
method
- the method to introspecttargetClass
- the target class (may be null
,
in which case the declaring class of the method must be used)null
if none found