Package org.h2.store
Interface InDoubtTransaction
- All Known Implementing Classes:
MVInDoubtTransaction
public interface InDoubtTransaction
Represents an in-doubt transaction (a transaction in the prepare phase).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The transaction state meaning this transaction is committed.static final int
The transaction state meaning this transaction is not committed yet, but also not rolled back (in-doubt).static final int
The transaction state meaning this transaction is rolled back. -
Method Summary
-
Field Details
-
IN_DOUBT
static final int IN_DOUBTThe transaction state meaning this transaction is not committed yet, but also not rolled back (in-doubt).- See Also:
-
COMMIT
static final int COMMITThe transaction state meaning this transaction is committed.- See Also:
-
ROLLBACK
static final int ROLLBACKThe transaction state meaning this transaction is rolled back.- See Also:
-
-
Method Details
-
setState
void setState(int state) Change the state of this transaction. This will also update the transaction log.- Parameters:
state
- the new state
-
getState
int getState()Get the state of this transaction.- Returns:
- the transaction state
-
getStateDescription
Get the state of this transaction as a text.- Returns:
- the transaction state text
-
getTransactionName
String getTransactionName()Get the name of the transaction.- Returns:
- the transaction name
-