org.jboss.messaging.core.transaction.impl
Class TransactionImpl

java.lang.Object
  extended by org.jboss.messaging.core.transaction.impl.TransactionImpl
All Implemented Interfaces:
Transaction

public class TransactionImpl
extends java.lang.Object
implements Transaction

A TransactionImpl

Author:
Tim Fox,
Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.messaging.core.transaction.Transaction
Transaction.State
 
Constructor Summary
TransactionImpl(long id, javax.transaction.xa.Xid xid, StorageManager storageManager)
           
TransactionImpl(StorageManager storageManager)
           
TransactionImpl(javax.transaction.xa.Xid xid, StorageManager storageManager, PostOffice postOffice)
           
 
Method Summary
 void addOperation(TransactionOperation operation)
           
 void commit()
           
 void commit(boolean onePhase)
           
 long getCreateTime()
           
 java.util.Set<Queue> getDistinctQueues()
           
 long getID()
           
 int getOperationsCount()
           
 java.lang.Object getProperty(int index)
           
 Transaction.State getState()
           
 javax.transaction.xa.Xid getXid()
           
 void markAsRollbackOnly(MessagingException messagingException)
           
 void prepare()
           
 void putProperty(int index, java.lang.Object property)
           
 void removeOperation(TransactionOperation operation)
           
 void resume()
           
 void rollback()
           
 void setState(Transaction.State state)
           
 void suspend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionImpl

public TransactionImpl(StorageManager storageManager)

TransactionImpl

public TransactionImpl(javax.transaction.xa.Xid xid,
                       StorageManager storageManager,
                       PostOffice postOffice)

TransactionImpl

public TransactionImpl(long id,
                       javax.transaction.xa.Xid xid,
                       StorageManager storageManager)
Method Detail

getDistinctQueues

public java.util.Set<Queue> getDistinctQueues()
Specified by:
getDistinctQueues in interface Transaction

getID

public long getID()
Specified by:
getID in interface Transaction

getCreateTime

public long getCreateTime()
Specified by:
getCreateTime in interface Transaction

prepare

public void prepare()
             throws java.lang.Exception
Specified by:
prepare in interface Transaction
Throws:
java.lang.Exception

commit

public void commit()
            throws java.lang.Exception
Specified by:
commit in interface Transaction
Throws:
java.lang.Exception

commit

public void commit(boolean onePhase)
            throws java.lang.Exception
Specified by:
commit in interface Transaction
Throws:
java.lang.Exception

rollback

public void rollback()
              throws java.lang.Exception
Specified by:
rollback in interface Transaction
Throws:
java.lang.Exception

suspend

public void suspend()
Specified by:
suspend in interface Transaction

resume

public void resume()
Specified by:
resume in interface Transaction

getState

public Transaction.State getState()
Specified by:
getState in interface Transaction

setState

public void setState(Transaction.State state)
Specified by:
setState in interface Transaction

getXid

public javax.transaction.xa.Xid getXid()
Specified by:
getXid in interface Transaction

markAsRollbackOnly

public void markAsRollbackOnly(MessagingException messagingException)
Specified by:
markAsRollbackOnly in interface Transaction

addOperation

public void addOperation(TransactionOperation operation)
Specified by:
addOperation in interface Transaction

removeOperation

public void removeOperation(TransactionOperation operation)
Specified by:
removeOperation in interface Transaction

getOperationsCount

public int getOperationsCount()
Specified by:
getOperationsCount in interface Transaction

putProperty

public void putProperty(int index,
                        java.lang.Object property)
Specified by:
putProperty in interface Transaction

getProperty

public java.lang.Object getProperty(int index)
Specified by:
getProperty in interface Transaction


Copyright © 2006 JBoss Inc. All Rights Reserved.