org.objectweb.jotm.core.transaction
Interface Interrogable

All Known Subinterfaces:
BasicTransaction, TwoPhaseCommitInterrogable, TwoPhaseCommitTransaction
All Known Implementing Classes:
CoreTransaction

public interface Interrogable

The interface reflects an interrogable transaction. Using its methods, it is possible to get information on the corresponding transaction.


Field Summary
static int STATUS_ABORTED
          Transaction has been aborted.
static int STATUS_ABORTING
          The abort method of the transaction was invoked and the transaction is now in the process of aborting.
static int STATUS_ACTIVE
          Transaction has been started and is still active.
static int STATUS_COMMITTED
          Transaction has been committed.
static int STATUS_COMMITTING
          The commit method of the transaction was invoked and the transaction is now in the process of committing.
static int STATUS_NO_TRANSACTION
          Transaction has not been started yet.
 
Method Summary
 java.lang.String getName()
          Get transaction name.
 int getStatus()
          Get transaction status.
 int getTimeout()
          Get transaction timeout.
 

Field Detail

STATUS_NO_TRANSACTION

public static final int STATUS_NO_TRANSACTION
Transaction has not been started yet.

See Also:
Constant Field Values

STATUS_ACTIVE

public static final int STATUS_ACTIVE
Transaction has been started and is still active.

See Also:
Constant Field Values

STATUS_COMMITTING

public static final int STATUS_COMMITTING
The commit method of the transaction was invoked and the transaction is now in the process of committing.

See Also:
Constant Field Values

STATUS_ABORTING

public static final int STATUS_ABORTING
The abort method of the transaction was invoked and the transaction is now in the process of aborting.

See Also:
Constant Field Values

STATUS_COMMITTED

public static final int STATUS_COMMITTED
Transaction has been committed.

See Also:
Constant Field Values

STATUS_ABORTED

public static final int STATUS_ABORTED
Transaction has been aborted.

See Also:
Constant Field Values
Method Detail

getStatus

public int getStatus()
Get transaction status.

Returns:
status of transaction

getName

public java.lang.String getName()
Get transaction name.

Returns:
name of transaction

getTimeout

public int getTimeout()
Get transaction timeout.

Returns:
transaction timoeut