Package org.h2.mvstore.db
Class MVInDoubtTransaction
- java.lang.Object
-
- org.h2.mvstore.db.MVInDoubtTransaction
-
- All Implemented Interfaces:
InDoubtTransaction
final class MVInDoubtTransaction extends java.lang.Object implements InDoubtTransaction
An in-doubt transaction.
-
-
Field Summary
Fields Modifier and Type Field Description private intstateprivate MVStorestoreprivate Transactiontransaction-
Fields inherited from interface org.h2.store.InDoubtTransaction
COMMIT, IN_DOUBT, ROLLBACK
-
-
Constructor Summary
Constructors Constructor Description MVInDoubtTransaction(MVStore store, Transaction transaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetState()Get the state of this transaction.java.lang.StringgetTransactionName()Get the name of the transaction.voidsetState(int state)Change the state of this transaction.-
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 Detail
-
store
private final MVStore store
-
transaction
private final Transaction transaction
-
state
private int state
-
-
Constructor Detail
-
MVInDoubtTransaction
MVInDoubtTransaction(MVStore store, Transaction transaction)
-
-
Method Detail
-
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
public java.lang.String getTransactionName()
Description copied from interface:InDoubtTransactionGet the name of the transaction.- Specified by:
getTransactionNamein interfaceInDoubtTransaction- Returns:
- the transaction name
-
-