org.objectweb.transaction.api.transaction
Interface TransactionState

All Superinterfaces:
State

public interface TransactionState
extends State

Description of the Transaction State

Version:
0.1
Author:
Romain Rouvoy
ADL:
name="TRANSACTION_STATE" value="tx-state"

Field Summary
static java.lang.String TRANSACTION_STATE
          Identifier for the ADL
 
Fields inherited from interface org.objectweb.transaction.api.State
STATE
 
Method Summary
 TransactionStatus getStatus()
          Returns the status of the transaction
 int getTimeout()
          Provides the value of the transaction timeout
 void setStatus(TransactionStatus status)
          Defines the status of the transaction
 void setTimeout(int value)
          Defines the value of the transaction timeout
 

Field Detail

TRANSACTION_STATE

public static final java.lang.String TRANSACTION_STATE
Identifier for the ADL

See Also:
Constant Field Values
Method Detail

setStatus

public void setStatus(TransactionStatus status)
Defines the status of the transaction

Parameters:
status -

getStatus

public TransactionStatus getStatus()
Returns the status of the transaction

Returns:
Status

setTimeout

public void setTimeout(int value)
Defines the value of the transaction timeout

Parameters:
value - - the value of the tiemout in seconds

getTimeout

public int getTimeout()
Provides the value of the transaction timeout

Returns:
the value of the timeout in seconds