org.axiondb.engine.tables
Class AbstractBaseTable

java.lang.Object
  extended by org.axiondb.event.BaseTableModificationPublisher
      extended by org.axiondb.engine.tables.AbstractBaseTable
All Implemented Interfaces:
RowSource, Table
Direct Known Subclasses:
BaseTable, TransactableTableImpl

public abstract class AbstractBaseTable
extends BaseTableModificationPublisher
implements Table

An abstract implementation of Table, code common between TransactableTableImpl and BaseTable

Version:
$Revision: 1.4 $ $Date: 2005/12/20 18:32:28 $

Field Summary
 
Fields inherited from interface org.axiondb.Table
REGULAR_TABLE_TYPE, SYSTEM_TABLE_TYPE
 
Constructor Summary
AbstractBaseTable()
           
 
Method Summary
protected  void checkConstraints(RowEvent event, boolean deferred, RowDecorator dec)
           
protected  void checkConstraints(RowEvent event, RowDecorator dec)
           
protected  void checkConstraints(RowIterator oldRows, RowIterator newRows)
           
 RowIterator getMatchingRows(List selectables, List values, boolean readOnly)
          Obtain an iteratorover my Rows where each Selectablein the selectable list evaluatesto the corresponding value in the value list.
protected  boolean hasDeferredConstraint()
           
protected  boolean isDeferAll()
           
 void migrate()
          Migrate from older version to newer version for this table
 
Methods inherited from class org.axiondb.event.BaseTableModificationPublisher
addTableModificationListener, getTableModificationListeners, publishEvent, removeTableModificationListener, setDeferAllConstraints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.axiondb.Table
addColumn, addConstraint, addIndex, addRow, addTableModificationListener, applyDeletes, applyInserts, applyUpdates, checkpoint, deleteRow, drop, freeRowId, getColumn, getColumn, getColumnCount, getColumnIdentifiers, getColumnIndex, getConstraint, getConstraints, getIndexedRows, getIndexedRows, getIndexForColumn, getIndices, getName, getNextRowId, getRowCount, getRowIterator, getSequence, getTableModificationListeners, getType, hasColumn, hasIndex, isColumnIndexed, isPrimaryKeyConstraintExists, isUniqueConstraintExists, makeRowDecorator, makeTransactableTable, populateIndex, remount, removeConstraint, removeIndex, removeTableModificationListener, rename, setDeferAllConstraints, setSequence, shutdown, truncate, updateRow
 
Methods inherited from interface org.axiondb.RowSource
getRow
 

Constructor Detail

AbstractBaseTable

public AbstractBaseTable()
Method Detail

getMatchingRows

public RowIterator getMatchingRows(List selectables,
                                   List values,
                                   boolean readOnly)
                            throws AxionException
Description copied from interface: Table
Obtain an iteratorover my Rows where each Selectablein the selectable list evaluatesto the corresponding value in the value list.

This is functionally similiar to executing a SELECT over this table where selectable[i] = value[i] for each value of i . The return RowIterator is not modifiable.

Specified by:
getMatchingRows in interface Table
Throws:
AxionException

migrate

public void migrate()
             throws AxionException
Description copied from interface: Table
Migrate from older version to newer version for this table

Specified by:
migrate in interface Table
Throws:
AxionException

checkConstraints

protected void checkConstraints(RowEvent event,
                                RowDecorator dec)
                         throws AxionException
Throws:
AxionException

checkConstraints

protected void checkConstraints(RowEvent event,
                                boolean deferred,
                                RowDecorator dec)
                         throws AxionException
Throws:
AxionException

checkConstraints

protected void checkConstraints(RowIterator oldRows,
                                RowIterator newRows)
                         throws AxionException
Throws:
AxionException

hasDeferredConstraint

protected boolean hasDeferredConstraint()

isDeferAll

protected boolean isDeferAll()