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)
- 另请参见:
- 序列化表格
从类 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.