org.axiondb

Interface Transaction

public interface Transaction extends Database, Transactable

A database transaction.

Version: $Revision: 1.9 $ $Date: 2004/08/27 03:21:20 $

Author: Rodney Waldhoff

Field Summary
static intSTATE_ABORTED
Aborted.
static intSTATE_APPLIED
Applied.
static intSTATE_COMMITTED
Committed, but not yet applied.
static intSTATE_OPEN
Open (neither committed nor aborted yet).
Method Summary
SetgetModifiedTables()
Return a Setof Tables that have been modified thus far in this transaction.
DatabasegetOpenOnTransaction()
Get the Databaseupon which I am open (i.e., the state to which we will return to if I am rolled back.
SetgetReadTables()
Return a Setof Tables that have been read thus far in this transaction.
intgetState()
Return my current transaction state.

Field Detail

STATE_ABORTED

public static final int STATE_ABORTED
Aborted.

STATE_APPLIED

public static final int STATE_APPLIED
Applied.

STATE_COMMITTED

public static final int STATE_COMMITTED
Committed, but not yet applied.

STATE_OPEN

public static final int STATE_OPEN
Open (neither committed nor aborted yet).

Method Detail

getModifiedTables

public Set getModifiedTables()
Return a Setof Tables that have been modified thus far in this transaction.

getOpenOnTransaction

public Database getOpenOnTransaction()
Get the Databaseupon which I am open (i.e., the state to which we will return to if I am rolled back. Note that this may be another Transaction.

getReadTables

public Set getReadTables()
Return a Setof Tables that have been read thus far in this transaction.

getState

public int getState()
Return my current transaction state. Returns one of STATE_OPEN, STATE_COMMITTED,STATE_ABORTED,STATE_APPLIED.