|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.store.InDoubtTransaction
public class InDoubtTransaction
Represents an in-doubt transaction (a transaction in the prepare phase).
Field Summary | |
---|---|
static int |
COMMIT
The transaction state meaning this transaction is committed. |
static int |
IN_DOUBT
The transaction state meaning this transaction is not committed yet, but also not rolled back (in-doubt). |
static int |
ROLLBACK
The transaction state meaning this transaction is rolled back. |
Constructor Summary | |
---|---|
InDoubtTransaction(PageStore store,
int sessionId,
int pos,
java.lang.String transaction)
Create a new in-doubt transaction info object. |
Method Summary | |
---|---|
java.lang.String |
getState()
Get the state of this transaction as a text. |
java.lang.String |
getTransaction()
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 |
Field Detail |
---|
public static final int IN_DOUBT
public static final int COMMIT
public static final int ROLLBACK
Constructor Detail |
---|
public InDoubtTransaction(PageStore store, int sessionId, int pos, java.lang.String transaction)
store
- the page storesessionId
- the session idpos
- the positiontransaction
- the transaction nameMethod Detail |
---|
public void setState(int state)
state
- the new statepublic java.lang.String getState()
public java.lang.String getTransaction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |