Package org.h2.mvstore.db
Class MVInDoubtTransaction
java.lang.Object
org.h2.mvstore.db.MVInDoubtTransaction
- All Implemented Interfaces:
InDoubtTransaction
An in-doubt transaction.
-
Field Summary
FieldsFields inherited from interface org.h2.store.InDoubtTransaction
COMMIT, IN_DOUBT, ROLLBACK
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.h2.store.InDoubtTransaction
getStateDescription
-
Field Details
-
store
-
transaction
-
state
private int state
-
-
Constructor Details
-
MVInDoubtTransaction
MVInDoubtTransaction(MVStore store, Transaction transaction)
-
-
Method Details
-
setState
public void setState(int state) Description copied from interface:InDoubtTransaction
Change the state of this transaction. This will also update the transaction log.- Specified by:
setState
in interfaceInDoubtTransaction
- Parameters:
state
- the new state
-
getState
public int getState()Description copied from interface:InDoubtTransaction
Get the state of this transaction.- Specified by:
getState
in interfaceInDoubtTransaction
- Returns:
- the transaction state
-
getTransactionName
Description copied from interface:InDoubtTransaction
Get the name of the transaction.- Specified by:
getTransactionName
in interfaceInDoubtTransaction
- Returns:
- the transaction name
-