|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.common.TransactionStrategy
public abstract class TransactionStrategy
This class represents the transaction strategy that is currently in force within the ESB. At present there are two strategies employed, a null strategy when running outside of an application server environment and a JTA strategy when running within.
Constructor Summary | |
---|---|
TransactionStrategy()
|
Method Summary | |
---|---|
abstract void |
begin()
Begin a transaction on the current thread. |
static TransactionStrategy |
getTransactionStrategy(boolean transacted)
Get the active transaction strategy. |
abstract void |
rollbackOnly()
Mark the current transaction for rollback. |
static void |
setTransactionStrategy(TransactionStrategy transactionStrategy)
Set the active transaction strategy. |
abstract void |
terminate()
Terminate the transaction on the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionStrategy()
Method Detail |
---|
public static TransactionStrategy getTransactionStrategy(boolean transacted)
transacted
- True if the current transacted strategy is required, false for a null strategy.
public static void setTransactionStrategy(TransactionStrategy transactionStrategy)
transactionStrategy
- The transaction strategy.public abstract void begin() throws TransactionStrategyException
TransactionStrategyException
public abstract void terminate() throws TransactionStrategyException
TransactionStrategyException
public abstract void rollbackOnly() throws TransactionStrategyException
TransactionStrategyException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |