org.axiondb.engine

Class TransactableTableImpl

public final class TransactableTableImpl extends AbstractBaseTable implements TransactableTable

An implemenation of TransactableTable.

Version: $Revision: 1.90 $ $Date: 2005/12/22 09:02:29 $

Author: Rodney Waldhoff Chuck Burdick Ahimanikya Satapathy

Constructor Summary
TransactableTableImpl(Table table)
Method Summary
voidaddColumn(Column col)
voidaddConstraint(Constraint constraint)
voidaddIndex(Index index)
voidaddRow(Row row)
voidapply()
voidapplyDeletes(IntCollection rowids)
voidapplyInserts(RowCollection rows)
voidapplyUpdates(RowCollection rows)
voidcheckpoint()
voidcommit()
voiddeleteRow(Row row)
voiddrop()
voidfreeRowId(int id)
ColumngetColumn(int index)
ColumngetColumn(String name)
intgetColumnCount()
ListgetColumnIdentifiers()
intgetColumnIndex(String name)
ConstraintgetConstraint(String name)
IteratorgetConstraints()
RowIteratorgetIndexedRows(Selectable node, boolean readOnly)
RowIteratorgetIndexedRows(RowSource source, Selectable node, boolean readOnly)
IndexgetIndexForColumn(Column column)
IteratorgetIndices()
StringgetName()
intgetNextRowId()
RowgetRow(int id)
intgetRowCount()
RowIteratorgetRowIterator(boolean readOnly)
SequencegetSequence()
TablegetTable()
StringgetType()
booleanhasColumn(ColumnIdentifier id)
booleanhasIndex(String name)
booleanisColumnIndexed(Column column)
protected booleanisDeferAll()
booleanisPrimaryKeyConstraintExists(String columnName)
Check if primary constraint exists on a column
booleanisUniqueConstraintExists(String columnName)
Check if unique constraint exists on a column
RowDecoratormakeRowDecorator()
TransactableTablemakeTransactableTable()
voidpopulateIndex(Index index)
voidremount(File dir, boolean dataOnly)
ConstraintremoveConstraint(String name)
voidremoveIndex(Index index)
voidrename(String oldName, String newName)
voidrollback()
voidsetDeferAllConstraints(boolean deferAll)
voidsetSequence(Sequence seq)
voidshutdown()
StringtoString()
voidtruncate()
voidupdateRow(Row oldrow, Row newrow)

Constructor Detail

TransactableTableImpl

public TransactableTableImpl(Table table)

Method Detail

addColumn

public void addColumn(Column col)

addConstraint

public void addConstraint(Constraint constraint)

addIndex

public void addIndex(Index index)

addRow

public void addRow(Row row)

apply

public void apply()

applyDeletes

public final void applyDeletes(IntCollection rowids)

applyInserts

public final void applyInserts(RowCollection rows)

applyUpdates

public final void applyUpdates(RowCollection rows)

checkpoint

public void checkpoint()

commit

public void commit()

deleteRow

public void deleteRow(Row row)

drop

public void drop()

freeRowId

public final void freeRowId(int id)

getColumn

public final Column getColumn(int index)

getColumn

public final Column getColumn(String name)

getColumnCount

public final int getColumnCount()

getColumnIdentifiers

public final List getColumnIdentifiers()

getColumnIndex

public final int getColumnIndex(String name)

getConstraint

public final Constraint getConstraint(String name)

getConstraints

public final Iterator getConstraints()

getIndexedRows

public RowIterator getIndexedRows(Selectable node, boolean readOnly)

getIndexedRows

public RowIterator getIndexedRows(RowSource source, Selectable node, boolean readOnly)

getIndexForColumn

public final Index getIndexForColumn(Column column)

getIndices

public final Iterator getIndices()

getName

public final String getName()

getNextRowId

public final int getNextRowId()

getRow

public Row getRow(int id)

getRowCount

public final int getRowCount()

getRowIterator

public RowIterator getRowIterator(boolean readOnly)

getSequence

public final Sequence getSequence()

getTable

public final Table getTable()

getType

public final String getType()

hasColumn

public final boolean hasColumn(ColumnIdentifier id)

hasIndex

public final boolean hasIndex(String name)

isColumnIndexed

public final boolean isColumnIndexed(Column column)

isDeferAll

protected final boolean isDeferAll()

isPrimaryKeyConstraintExists

public boolean isPrimaryKeyConstraintExists(String columnName)
Check if primary constraint exists on a column

Parameters: ColumnName name of the column

Returns: if PrimaryKeyConstraint exists on the column

isUniqueConstraintExists

public boolean isUniqueConstraintExists(String columnName)
Check if unique constraint exists on a column

Parameters: columnName name of the columm

Returns: true if uniqueConstraint exists on the column

makeRowDecorator

public final RowDecorator makeRowDecorator()

makeTransactableTable

public final TransactableTable makeTransactableTable()

populateIndex

public final void populateIndex(Index index)

remount

public void remount(File dir, boolean dataOnly)

removeConstraint

public Constraint removeConstraint(String name)

removeIndex

public void removeIndex(Index index)

rename

public void rename(String oldName, String newName)

rollback

public void rollback()

setDeferAllConstraints

public void setDeferAllConstraints(boolean deferAll)

setSequence

public void setSequence(Sequence seq)

shutdown

public void shutdown()

toString

public String toString()

truncate

public void truncate()

updateRow

public void updateRow(Row oldrow, Row newrow)