类 CompositeTransactionAttributeSource
- java.lang.Object
- org.springframework.transaction.interceptor.CompositeTransactionAttributeSource
- 所有已实现的接口:
Serializable
,TransactionAttributeSource
public class CompositeTransactionAttributeSource extends Object implements TransactionAttributeSource, Serializable
CompositeTransactionAttributeSource
implementation that iterates over a given array ofTransactionAttributeSource
instances.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 CompositeTransactionAttributeSource(TransactionAttributeSource... transactionAttributeSources)
Create a new CompositeTransactionAttributeSource for the given sources.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TransactionAttribute
getTransactionAttribute(Method method, Class<?> targetClass)
Return the transaction attribute for the given method, ornull
if the method is non-transactional.TransactionAttributeSource[]
getTransactionAttributeSources()
Return the TransactionAttributeSource instances that this CompositeTransactionAttributeSource combines.
构造器详细资料
CompositeTransactionAttributeSource
public CompositeTransactionAttributeSource(TransactionAttributeSource... transactionAttributeSources)
Create a new CompositeTransactionAttributeSource for the given sources.- 参数:
transactionAttributeSources
- the TransactionAttributeSource instances to combine
方法详细资料
getTransactionAttributeSources
public final TransactionAttributeSource[] getTransactionAttributeSources()
Return the TransactionAttributeSource instances that this CompositeTransactionAttributeSource combines.
getTransactionAttribute
public TransactionAttribute getTransactionAttribute(Method method, Class<?> targetClass)
从接口复制的说明:TransactionAttributeSource
Return the transaction attribute for the given method, ornull
if the method is non-transactional.- 指定者:
getTransactionAttribute
在接口中TransactionAttributeSource
- 参数:
method
- the method to introspecttargetClass
- the target class (may benull
, in which case the declaring class of the method must be used)- 返回:
- the matching transaction attribute, or
null
if none found