org.springframework.transaction.interceptor
Class TransactionAspectSupport.TransactionInfo

java.lang.Object
  extended by org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo
Enclosing class:
TransactionAspectSupport

protected final class TransactionAspectSupport.TransactionInfo
extends java.lang.Object

Opaque object used to hold Transaction information. Subclasses must pass it back to methods on this class, but not see its internals.


Field Summary
private  java.lang.String joinpointIdentification
           
private  TransactionAspectSupport.TransactionInfo oldTransactionInfo
           
private  TransactionAttribute transactionAttribute
           
private  PlatformTransactionManager transactionManager
           
private  TransactionStatus transactionStatus
           
 
Constructor Summary
TransactionAspectSupport.TransactionInfo(PlatformTransactionManager transactionManager, TransactionAttribute transactionAttribute, java.lang.String joinpointIdentification)
           
 
Method Summary
private  void bindToThread()
           
 java.lang.String getJoinpointIdentification()
          Return a String representation of this joinpoint (usually a Method call) for use in logging.
 TransactionAttribute getTransactionAttribute()
           
 PlatformTransactionManager getTransactionManager()
           
 TransactionStatus getTransactionStatus()
           
 boolean hasTransaction()
          Return whether a transaction was created by this aspect, or whether we just have a placeholder to keep ThreadLocal stack integrity.
 void newTransactionStatus(TransactionStatus status)
           
private  void restoreThreadLocalStatus()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transactionManager

private final PlatformTransactionManager transactionManager

transactionAttribute

private final TransactionAttribute transactionAttribute

joinpointIdentification

private final java.lang.String joinpointIdentification

transactionStatus

private TransactionStatus transactionStatus

oldTransactionInfo

private TransactionAspectSupport.TransactionInfo oldTransactionInfo
Constructor Detail

TransactionAspectSupport.TransactionInfo

public TransactionAspectSupport.TransactionInfo(PlatformTransactionManager transactionManager,
                                                TransactionAttribute transactionAttribute,
                                                java.lang.String joinpointIdentification)
Method Detail

getTransactionManager

public PlatformTransactionManager getTransactionManager()

getTransactionAttribute

public TransactionAttribute getTransactionAttribute()

getJoinpointIdentification

public java.lang.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.


bindToThread

private void bindToThread()

restoreThreadLocalStatus

private void restoreThreadLocalStatus()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object