org.mule.umo
Interface UMOTransactionConfig

All Known Implementing Classes:
MuleTransactionConfig

public interface UMOTransactionConfig

UMOTransactionConfig defines transaction configuration for a transactional endpoint.


Field Summary
static byte ACTION_ALWAYS_BEGIN
          Will ensure that a new transaction is created for each invocation
static byte ACTION_ALWAYS_JOIN
          There must always be a transaction present for the invocation
static byte ACTION_BEGIN_OR_JOIN
          Will begin a new transaction if no transaction is already present
static byte ACTION_JOIN_IF_POSSIBLE
          If there is a transaction available, then use it, otherwise continue processing
static byte ACTION_NONE
          Whether there is a transaction available or not, ignore it
 
Method Summary
 byte getAction()
           
 ConstraintFilter getConstraint()
           
 UMOTransactionFactory getFactory()
           
 int getTimeout()
           
 boolean isConfigured()
          There is a need to separate ACTION_NONE with TransactionFactory and not initialized transaction config (factory was not sed)
 boolean isTransacted()
           
 void setAction(byte action)
           
 void setConstraint(ConstraintFilter constraint)
           
 void setFactory(UMOTransactionFactory factory)
           
 void setTimeout(int timeout)
           
 

Field Detail

ACTION_NONE

static final byte ACTION_NONE
Whether there is a transaction available or not, ignore it

See Also:
Constant Field Values

ACTION_ALWAYS_BEGIN

static final byte ACTION_ALWAYS_BEGIN
Will ensure that a new transaction is created for each invocation

See Also:
Constant Field Values

ACTION_BEGIN_OR_JOIN

static final byte ACTION_BEGIN_OR_JOIN
Will begin a new transaction if no transaction is already present

See Also:
Constant Field Values

ACTION_ALWAYS_JOIN

static final byte ACTION_ALWAYS_JOIN
There must always be a transaction present for the invocation

See Also:
Constant Field Values

ACTION_JOIN_IF_POSSIBLE

static final byte ACTION_JOIN_IF_POSSIBLE
If there is a transaction available, then use it, otherwise continue processing

See Also:
Constant Field Values
Method Detail

getFactory

UMOTransactionFactory getFactory()

setFactory

void setFactory(UMOTransactionFactory factory)

getAction

byte getAction()

setAction

void setAction(byte action)

isTransacted

boolean isTransacted()

getConstraint

ConstraintFilter getConstraint()

setConstraint

void setConstraint(ConstraintFilter constraint)

setTimeout

void setTimeout(int timeout)

getTimeout

int getTimeout()

isConfigured

boolean isConfigured()
There is a need to separate ACTION_NONE with TransactionFactory and not initialized transaction config (factory was not sed)

Returns:
true if transaction factory is set


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.