org.apache.tuscany.sca.policy.transaction
Class TransactionManagerHelper

java.lang.Object
  extended by org.apache.tuscany.sca.policy.transaction.TransactionManagerHelper

public class TransactionManagerHelper
extends java.lang.Object


Constructor Summary
TransactionManagerHelper(TransactionManager tm)
           
 
Method Summary
 TransactionManager getTransactionManager()
           
<T> T
handlesInbound(TransactionIntent serviceIntent, TransactionIntent implIntent, TransactionalAction<T> action)
           
<T> void
handlesOneWay(TransactionIntent onewayIntent, TransactionIntent implIntent, TransactionalAction<T> action)
           
<T> T
handlesOutbound(TransactionIntent referenceIntent, TransactionIntent implIntent, TransactionalAction<T> action)
           
 void managedGlobalTransactionPostInvoke(Transaction created, boolean rollback)
           
 Transaction managedGlobalTransactionPreInvoke()
           
 void setTransactionManager(TransactionManager tm)
           
 void suspendsTransactionPostInvoke(Transaction suspended)
           
 Transaction suspendsTransactionPreInvoke()
           
 void validateInbound(TransactionIntent serviceIntent, TransactionIntent implIntent)
           
 void validateOneway(TransactionIntent onewayIntent, TransactionIntent implIntent)
           
 void validateOutbound(TransactionIntent referenceIntent, TransactionIntent implIntent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionManagerHelper

public TransactionManagerHelper(TransactionManager tm)
Method Detail

managedGlobalTransactionPreInvoke

public Transaction managedGlobalTransactionPreInvoke()
                                              throws SystemException,
                                                     NotSupportedException
Throws:
SystemException
NotSupportedException

managedGlobalTransactionPostInvoke

public void managedGlobalTransactionPostInvoke(Transaction created,
                                               boolean rollback)
                                        throws javax.transaction.InvalidTransactionException,
                                               java.lang.IllegalStateException,
                                               SystemException,
                                               java.lang.SecurityException,
                                               HeuristicMixedException,
                                               HeuristicRollbackException,
                                               RollbackException
Throws:
javax.transaction.InvalidTransactionException
java.lang.IllegalStateException
SystemException
java.lang.SecurityException
HeuristicMixedException
HeuristicRollbackException
RollbackException

suspendsTransactionPreInvoke

public Transaction suspendsTransactionPreInvoke()
                                         throws SystemException
Throws:
SystemException

suspendsTransactionPostInvoke

public void suspendsTransactionPostInvoke(Transaction suspended)
                                   throws javax.transaction.InvalidTransactionException,
                                          java.lang.IllegalStateException,
                                          SystemException
Throws:
javax.transaction.InvalidTransactionException
java.lang.IllegalStateException
SystemException

getTransactionManager

public TransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(TransactionManager tm)

validateOneway

public void validateOneway(TransactionIntent onewayIntent,
                           TransactionIntent implIntent)
                    throws IncompatibleIntentException
Throws:
IncompatibleIntentException

validateInbound

public void validateInbound(TransactionIntent serviceIntent,
                            TransactionIntent implIntent)
                     throws IncompatibleIntentException
Throws:
IncompatibleIntentException

validateOutbound

public void validateOutbound(TransactionIntent referenceIntent,
                             TransactionIntent implIntent)
                      throws IncompatibleIntentException
Throws:
IncompatibleIntentException

handlesOutbound

public <T> T handlesOutbound(TransactionIntent referenceIntent,
                             TransactionIntent implIntent,
                             TransactionalAction<T> action)
                  throws java.lang.Exception
Throws:
java.lang.Exception

handlesInbound

public <T> T handlesInbound(TransactionIntent serviceIntent,
                            TransactionIntent implIntent,
                            TransactionalAction<T> action)
                 throws java.lang.Exception
Throws:
java.lang.Exception

handlesOneWay

public <T> void handlesOneWay(TransactionIntent onewayIntent,
                              TransactionIntent implIntent,
                              TransactionalAction<T> action)
                   throws java.lang.Exception
Throws:
java.lang.Exception