public class InDoubtTransaction extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
InDoubtTransaction(PageStore store,
int sessionId,
int pos,
String transaction)
Create a new in-doubt transaction info object.
|
Modifier and Type | Method and Description |
---|---|
String |
getState()
Get the state of this transaction as a text.
|
String |
getTransaction()
Get the name of the transaction.
|
void |
setState(int state)
Change the state of this transaction.
|
public static final int IN_DOUBT
public static final int COMMIT
public static final int ROLLBACK
public void setState(int state)
state
- the new statepublic String getState()
public String getTransaction()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.