org.jboss.soa.esb.common
Class TransactionStrategy.NullTransactionStrategy

java.lang.Object
  extended by org.jboss.soa.esb.common.TransactionStrategy
      extended by org.jboss.soa.esb.common.TransactionStrategy.NullTransactionStrategy
Enclosing class:
TransactionStrategy

public static class TransactionStrategy.NullTransactionStrategy
extends TransactionStrategy

The null transaction strategy.

Author:
kevin

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.soa.esb.common.TransactionStrategy
TransactionStrategy.NullTransactionStrategy
 
Constructor Summary
TransactionStrategy.NullTransactionStrategy()
           
 
Method Summary
 void begin()
          Begin a transaction on the current thread.
 void enlistResource(javax.transaction.xa.XAResource resource)
          Add a resource to the current transaction.
 java.lang.Object getTransaction()
          Get a handle on the currently associated transaction (or null).
 boolean isActive()
          Is the currently associated transaction active?
 void registerSynchronization(javax.transaction.Synchronization sync)
          Add a synchronization to the current transaction.
 void resume(java.lang.Object tx)
          Associated the transaction with the current thread.
 void rollbackOnly()
          Mark the current transaction for rollback.
 java.lang.Object suspend()
          Suspend the current thread-to-transaction association.
 void terminate()
          Terminate the transaction on the current thread.
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.soa.esb.common.TransactionStrategy
getTransactionStrategy, setTransactionStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionStrategy.NullTransactionStrategy

public TransactionStrategy.NullTransactionStrategy()
Method Detail

begin

public void begin()
           throws TransactionStrategyException
Begin a transaction on the current thread.

Specified by:
begin in class TransactionStrategy
Throws:
TransactionStrategyException

terminate

public void terminate()
               throws TransactionStrategyException
Terminate the transaction on the current thread. If the transaction has been marked for rollback then it will be rolled back, otherwise it will be committed.

Specified by:
terminate in class TransactionStrategy
Throws:
TransactionStrategyException

rollbackOnly

public void rollbackOnly()
                  throws TransactionStrategyException
Mark the current transaction for rollback.

Specified by:
rollbackOnly in class TransactionStrategy
Throws:
TransactionStrategyException

getTransaction

public java.lang.Object getTransaction()
                                throws TransactionStrategyException
Get a handle on the currently associated transaction (or null).

Specified by:
getTransaction in class TransactionStrategy
Throws:
TransactionStrategyException

suspend

public java.lang.Object suspend()
                         throws TransactionStrategyException
Suspend the current thread-to-transaction association.

Specified by:
suspend in class TransactionStrategy
Returns:
the associated transaction, or null.
Throws:
TransactionStrategyException

resume

public void resume(java.lang.Object tx)
            throws TransactionStrategyException
Associated the transaction with the current thread.

Specified by:
resume in class TransactionStrategy
Parameters:
tx -
Throws:
TransactionStrategyException

registerSynchronization

public void registerSynchronization(javax.transaction.Synchronization sync)
                             throws TransactionStrategyException
Add a synchronization to the current transaction.

Specified by:
registerSynchronization in class TransactionStrategy
Parameters:
sync -
Throws:
TransactionStrategyException

enlistResource

public void enlistResource(javax.transaction.xa.XAResource resource)
                    throws TransactionStrategyException
Add a resource to the current transaction.

Specified by:
enlistResource in class TransactionStrategy
Parameters:
resource -
Throws:
TransactionStrategyException

isActive

public boolean isActive()
                 throws TransactionStrategyException
Is the currently associated transaction active?

Specified by:
isActive in class TransactionStrategy
Returns:
Throws:
TransactionStrategyException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object