org.apache.activemq.transaction
Class LocalTransaction

java.lang.Object
  extended by org.apache.activemq.transaction.Transaction
      extended by org.apache.activemq.transaction.LocalTransaction

public class LocalTransaction
extends Transaction

Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class org.apache.activemq.transaction.Transaction
FINISHED_STATE, IN_USE_STATE, PREPARED_STATE, START_STATE
 
Constructor Summary
LocalTransaction(TransactionStore transactionStore, LocalTransactionId xid, ConnectionContext context)
           
 
Method Summary
 void commit(boolean onePhase)
           
 TransactionId getTransactionId()
           
 int prepare()
           
 void rollback()
           
 
Methods inherited from class org.apache.activemq.transaction.Transaction
addSynchronization, fireAfterCommit, fireAfterRollback, getState, isPrepared, prePrepare, removeSynchronization, setState, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalTransaction

public LocalTransaction(TransactionStore transactionStore,
                        LocalTransactionId xid,
                        ConnectionContext context)
Method Detail

commit

public void commit(boolean onePhase)
            throws XAException,
                   IOException
Specified by:
commit in class Transaction
Throws:
XAException
IOException

rollback

public void rollback()
              throws XAException,
                     IOException
Specified by:
rollback in class Transaction
Throws:
XAException
IOException

prepare

public int prepare()
            throws XAException
Specified by:
prepare in class Transaction
Throws:
XAException

getTransactionId

public TransactionId getTransactionId()
Specified by:
getTransactionId in class Transaction


Copyright © 2009. All Rights Reserved.