com.taobao.metamorphosis.server.transaction
类 LocalTransaction

java.lang.Object
  继承者 com.taobao.metamorphosis.server.transaction.Transaction
      继承者 com.taobao.metamorphosis.server.transaction.LocalTransaction
所有已实现的接口:
Serializable

public class LocalTransaction
extends Transaction

本地事务实现

作者:
boyan(boyan@taobao.com)
另请参见:
序列化表格

字段摘要
 
从类 com.taobao.metamorphosis.server.transaction.Transaction 继承的字段
FINISHED_STATE, HEURISTIC_COMMIT_STATE, HEURISTIC_COMPLETE_STATE, HEURISTIC_ROLLBACK_STATE, IN_USE_STATE, PREPARED_STATE, START_STATE
 
构造方法摘要
LocalTransaction(TransactionStore transactionStore, LocalTransactionId xid, SessionContext context)
           
 
方法摘要
 void commit(boolean onePhase)
           
 org.apache.commons.logging.Log getLog()
           
 TransactionId getTransactionId()
           
 int prepare()
           
 void rollback()
           
 
从类 com.taobao.metamorphosis.server.transaction.Transaction 继承的方法
cancelTimeout, getState, getTimeoutRef, isPrepared, prePrepare, setState, setTimeoutRef, setTransactionInUse
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

LocalTransaction

public LocalTransaction(TransactionStore transactionStore,
                        LocalTransactionId xid,
                        SessionContext context)
方法详细信息

commit

public void commit(boolean onePhase)
            throws XAException,
                   IOException
指定者:
Transaction 中的 commit
抛出:
XAException
IOException

rollback

public void rollback()
              throws XAException,
                     IOException
指定者:
Transaction 中的 rollback
抛出:
XAException
IOException

prepare

public int prepare()
            throws XAException
指定者:
Transaction 中的 prepare
抛出:
XAException

getTransactionId

public TransactionId getTransactionId()
指定者:
Transaction 中的 getTransactionId

getLog

public org.apache.commons.logging.Log getLog()
指定者:
Transaction 中的 getLog


Copyright © 2010–2013. All rights reserved.