org.axiondb
Interface Transaction

All Superinterfaces:
Database, Transactable
All Known Implementing Classes:
SnapshotIsolationTransaction

public interface Transaction
extends Database, Transactable

A database transaction.

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

Field Summary
static int STATE_ABORTED
          Aborted.
static int STATE_APPLIED
          Applied.
static int STATE_COMMITTED
          Committed, but not yet applied.
static int STATE_OPEN
          Open (neither committed nor aborted yet).
 
Fields inherited from interface org.axiondb.Database
COMMIT_SIZE
 
Method Summary
 Set getModifiedTables()
          Return a Setof Tables that have been modified thus far in this transaction.
 Database getOpenOnTransaction()
          Get the Databaseupon which I am open (i.e., the state to which we will return to if I am rolled back.
 Set getReadTables()
          Return a Setof Tables that have been read thus far in this transaction.
 int getState()
          Return my current transaction state.
 
Methods inherited from interface org.axiondb.Database
addDatabaseModificationListener, addIndex, addIndex, addTable, canResolveSelectable, checkpoint, createDatabaseLink, createSequence, dropDatabaseLink, dropIndex, dropSequence, dropTable, getDatabaseLink, getDatabaseModificationListeners, getDataType, getDBDirectory, getGlobalVariable, getIndexFactory, getName, getSequence, getTable, getTable, getTableFactory, getTransactionManager, hasDatabaseLink, hasIndex, hasSequence, hasTable, hasTable, isReadOnly, remount, renameTable, resolveFromNode, resolveSelectable, resolveSelectable, shutdown, tableAltered
 
Methods inherited from interface org.axiondb.Transactable
apply, commit, rollback
 

Field Detail

STATE_ABORTED

public static final int STATE_ABORTED
Aborted.

See Also:
Constant Field Values

STATE_APPLIED

public static final int STATE_APPLIED
Applied.

See Also:
Constant Field Values

STATE_COMMITTED

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

See Also:
Constant Field Values

STATE_OPEN

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

See Also:
Constant Field Values
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.