| Modifier and Type | Field and Description |
|---|---|
| public static final int | COMMIT
The transaction state meaning this transaction is committed. |
| public static final int | IN_DOUBT
The transaction state meaning this transaction is not committed yet, but also not rolled back (in-doubt). |
| public static final int | ROLLBACK
The transaction state meaning this transaction is rolled back. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public default String | Returns: the transaction state textGet the state of this transaction as a text. |
| public String | |
| public void |
| COMMIT | back to summary |
|---|---|
| public static final int COMMIT The transaction state meaning this transaction is committed. | |
| IN_DOUBT | back to summary |
|---|---|
| public static final int IN_DOUBT The transaction state meaning this transaction is not committed yet, but also not rolled back (in-doubt). | |
| ROLLBACK | back to summary |
|---|---|
| public static final int ROLLBACK The transaction state meaning this transaction is rolled back. | |
| getState | back to summary |
|---|---|
| public int getState() Get the state of this transaction.
| |
| getStateDescription | back to summary |
|---|---|
| public default String getStateDescription() Get the state of this transaction as a text.
| |
| getTransactionName | back to summary |
|---|---|
| public String getTransactionName() Get the name of the transaction.
| |
| setState | back to summary |
|---|---|
| public void setState(int state) Change the state of this transaction. This will also update the transaction log.
| |