com.taobao.metamorphosis.transaction
类 TransactionInfo

java.lang.Object
  继承者 com.taobao.metamorphosis.transaction.TransactionInfo

public class TransactionInfo
extends Object

事务信息

作者:
boyan

嵌套类摘要
static class TransactionInfo.TransactionType
          事务状态
 
构造方法摘要
TransactionInfo(TransactionId transactionId, String sessionId, TransactionInfo.TransactionType type)
           
TransactionInfo(TransactionId transactionId, String sessionId, TransactionInfo.TransactionType type, String uniqueQualifier)
           
TransactionInfo(TransactionId transactionId, String sessionId, TransactionInfo.TransactionType type, String uniqueQualifier, int timeout)
           
 
方法摘要
 boolean equals(Object obj)
           
 String getSessionId()
           
 int getTimeout()
           
 TransactionId getTransactionId()
           
 TransactionInfo.TransactionType getType()
           
 String getUniqueQualifier()
           
 int hashCode()
           
 void setTimeout(int timeout)
          设置事务超时
 void setUniqueQualifier(String uniqueQualifier)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

TransactionInfo

public TransactionInfo(TransactionId transactionId,
                       String sessionId,
                       TransactionInfo.TransactionType type)

TransactionInfo

public TransactionInfo(TransactionId transactionId,
                       String sessionId,
                       TransactionInfo.TransactionType type,
                       String uniqueQualifier)

TransactionInfo

public TransactionInfo(TransactionId transactionId,
                       String sessionId,
                       TransactionInfo.TransactionType type,
                       String uniqueQualifier,
                       int timeout)
方法详细信息

setUniqueQualifier

public void setUniqueQualifier(String uniqueQualifier)

getUniqueQualifier

public String getUniqueQualifier()

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)
                throws XAException
设置事务超时

参数:
timeout -
抛出:
XAException

getTransactionId

public TransactionId getTransactionId()

getSessionId

public String getSessionId()

getType

public TransactionInfo.TransactionType getType()

hashCode

public int hashCode()
覆盖:
Object 中的 hashCode

equals

public boolean equals(Object obj)
覆盖:
Object 中的 equals

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2010–2013. All rights reserved.