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, waitMethods 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:InDoubtTransactionChange the state of this transaction. This will also update the transaction log.- Specified by:
setStatein interfaceInDoubtTransaction- Parameters:
state- the new state
-
getState
public int getState()Description copied from interface:InDoubtTransactionGet the state of this transaction.- Specified by:
getStatein interfaceInDoubtTransaction- Returns:
- the transaction state
-
getTransactionName
Description copied from interface:InDoubtTransactionGet the name of the transaction.- Specified by:
getTransactionNamein interfaceInDoubtTransaction- Returns:
- the transaction name
-