类 TransactionAspectSupport.TransactionInfo
- java.lang.Object
- org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo
protected final class TransactionAspectSupport.TransactionInfo extends Object
Opaque object used to hold transaction information. Subclasses must pass it back to methods on this class, but not see its internals.
构造器概要
构造器 构造器 说明 TransactionInfo(PlatformTransactionManager transactionManager, TransactionAttribute transactionAttribute, String joinpointIdentification)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetJoinpointIdentification()Return a String representation of this joinpoint (usually a Method call) for use in logging.TransactionAttributegetTransactionAttribute()PlatformTransactionManagergetTransactionManager()TransactionStatusgetTransactionStatus()booleanhasTransaction()Return whether a transaction was created by this aspect, or whether we just have a placeholder to keep ThreadLocal stack integrity.voidnewTransactionStatus(TransactionStatus status)StringtoString()
构造器详细资料
TransactionInfo
public TransactionInfo(PlatformTransactionManager transactionManager, TransactionAttribute transactionAttribute, String joinpointIdentification)
方法详细资料
getTransactionManager
public PlatformTransactionManager getTransactionManager()
getTransactionAttribute
public TransactionAttribute getTransactionAttribute()
getJoinpointIdentification
public String getJoinpointIdentification()
Return a String representation of this joinpoint (usually a Method call) for use in logging.
newTransactionStatus
public void newTransactionStatus(TransactionStatus status)
getTransactionStatus
public TransactionStatus getTransactionStatus()
hasTransaction
public boolean hasTransaction()
Return whether a transaction was created by this aspect, or whether we just have a placeholder to keep ThreadLocal stack integrity.