Top Description Fields Methods
org.h2.store

public Interface InDoubtTransaction

Known Direct Implementers
org.h2.mvstore.db.MVInDoubtTransaction
Imports
org.h2.message.DbException

Represents an in-doubt transaction (a transaction in the prepare phase).

Field Summary

Modifier and TypeField and Description
public static final int
COMMIT

The transaction state meaning this transaction is committed.

public static final int
IN_DOUBT

The transaction state meaning this transaction is not committed yet, but also not rolled back (in-doubt).

public static final int
ROLLBACK

The transaction state meaning this transaction is rolled back.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the transaction state
getState
()

Get the state of this transaction.

public default String

Returns:

the transaction state text
getStateDescription
()

Get the state of this transaction as a text.

public String

Returns:

the transaction name
getTransactionName
()

Get the name of the transaction.

public void
setState(int
the new state
state
)

Change the state of this transaction.

Field Detail

COMMITback to summary
public static final int COMMIT

The transaction state meaning this transaction is committed.

IN_DOUBTback to summary
public static final int IN_DOUBT

The transaction state meaning this transaction is not committed yet, but also not rolled back (in-doubt).

ROLLBACKback to summary
public static final int ROLLBACK

The transaction state meaning this transaction is rolled back.

Method Detail

getStateback to summary
public int getState()

Get the state of this transaction.

Returns:int

the transaction state

getStateDescriptionback to summary
public default String getStateDescription()

Get the state of this transaction as a text.

Returns:String

the transaction state text

getTransactionNameback to summary
public String getTransactionName()

Get the name of the transaction.

Returns:String

the transaction name

setStateback to summary
public void setState(int state)

Change the state of this transaction. This will also update the transaction log.

Parameters
state:int

the new state