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 int
state
private MVStore
store
private Transaction
transaction
-
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 int
getState()
Get the state of this transaction.java.lang.String
getTransactionName()
Get the name of the transaction.void
setState(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: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
public java.lang.String getTransactionName()
Description copied from interface:InDoubtTransaction
Get the name of the transaction.- Specified by:
getTransactionName
in interfaceInDoubtTransaction
- Returns:
- the transaction name
-
-