InDoubtTransaction

Represents an in-doubt transaction (a transaction in the prepare phase).

Methods
String getState()
Get the state of this transaction as a text.
String getState()
Get the state of this transaction as a text.
Returns:
the transaction state text
String getTransactionName()
Get the name of the transaction.
String getTransactionName()
Get the name of the transaction.
Returns:
the transaction name
void setState(int state)
Change the state of this transaction.
void setState(int state)
Change the state of this transaction. This will also update the transaction log.
Parameters:
state - the new state

Fields
static int COMMIT = 1
static int IN_DOUBT = 0
static int ROLLBACK = 2

IN_DOUBT = 0

The transaction state meaning this transaction is not committed yet, but also not rolled back (in-doubt).

COMMIT = 1

The transaction state meaning this transaction is committed.

ROLLBACK = 2

The transaction state meaning this transaction is rolled back.