org.axiondb.engine.tables

Class TableView

public class TableView extends BaseTableModificationPublisher implements Table

A sub-query view Table.

Version: $Revision: 1.31 $ $Date: 2006/01/10 21:02:36 $

Author: Ahimanikya Satapathy

Field Summary
static StringSUBQUERY
static StringVIEW
Constructor Summary
TableView(Database db, String name, String type, SubSelectCommand subSelectCmd)
TableView(Database db, String name, SubSelectCommand subSelectCmd)
TableView(Database db, String name)
Method Summary
voidaddColumn(Column col)
voidaddConstraint(Constraint constraint)
voidaddIndex(Index index)
voidaddRow(Row row)
voidapplyDeletes(IntCollection rowids)
voidapplyInserts(RowCollection rows)
voidapplyUpdates(RowCollection rows)
RowDecoratorbuildRowDecorator()
voidcheckpoint()
protected booleandeleteFile(File file)
voiddeleteRow(Row oldrow)
voiddrop()
voidfreeRowId(int id)
ColumngetColumn(int index)
ColumngetColumn(String name)
intgetColumnCount()
ListgetColumnIdentifierList(TableIdentifier table)
ListgetColumnIdentifiers()
intgetColumnIndex(String name)
ConstraintgetConstraint(String name)
IteratorgetConstraints()
RowIteratorgetIndexedRows(Selectable node, boolean readOnly)
RowIteratorgetIndexedRows(RowSource source, Selectable node, boolean readOnly)
IndexgetIndexForColumn(Column column)
IteratorgetIndices()
RowIteratorgetMatchingRows(List selectables, List values, boolean readOnly)
StringgetName()
intgetNextRowId()
RowgetRow(int id)
intgetRowCount()
protected RowIteratorgetRowIterator()
RowIteratorgetRowIterator(boolean readOnly)
SequencegetSequence()
IteratorgetTables()
StringgetType()
booleanhasColumn(ColumnIdentifier id)
booleanhasIndex(String name)
booleanisColumnIndexed(Column column)
booleanisPrimaryKeyConstraintExists(String columnName)
check if primary constraint exists on a column
booleanisUniqueConstraintExists(String columnName)
check if unique constraint exists on a column
RowDecoratormakeRowDecorator()
TransactableTablemakeTransactableTable()
voidmigrate()
voidpopulateIndex(Index index)
voidremount(File dir, boolean datafilesonly)
ConstraintremoveConstraint(String name)
voidremoveIndex(Index index)
voidrename(String oldName, String newName)
voidsetSequence(Sequence seq)
voidsetSubQuery(String query)
voidsetType(String type)
voidshutdown()
StringtoString()
voidtruncate()
voidupdateRow(Row oldrow, Row newrow)

Field Detail

SUBQUERY

public static String SUBQUERY

VIEW

public static String VIEW

Constructor Detail

TableView

public TableView(Database db, String name, String type, SubSelectCommand subSelectCmd)

TableView

public TableView(Database db, String name, SubSelectCommand subSelectCmd)

TableView

public TableView(Database db, String name)

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)

applyDeletes

public void applyDeletes(IntCollection rowids)

applyInserts

public void applyInserts(RowCollection rows)

applyUpdates

public void applyUpdates(RowCollection rows)

buildRowDecorator

public RowDecorator buildRowDecorator()

checkpoint

public void checkpoint()

deleteFile

protected boolean deleteFile(File file)

deleteRow

public void deleteRow(Row oldrow)

drop

public void drop()

freeRowId

public void freeRowId(int id)

getColumn

public final Column getColumn(int index)

getColumn

public final Column getColumn(String name)

getColumnCount

public final int getColumnCount()

getColumnIdentifierList

public List getColumnIdentifierList(TableIdentifier table)

getColumnIdentifiers

public final List getColumnIdentifiers()

getColumnIndex

public int getColumnIndex(String name)

getConstraint

public Constraint getConstraint(String name)

getConstraints

public Iterator getConstraints()

getIndexedRows

public RowIterator getIndexedRows(Selectable node, boolean readOnly)

getIndexedRows

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

getIndexForColumn

public Index getIndexForColumn(Column column)

getIndices

public final Iterator getIndices()

getMatchingRows

public RowIterator getMatchingRows(List selectables, List values, boolean readOnly)

getName

public final String getName()

getNextRowId

public int getNextRowId()

getRow

public Row getRow(int id)

getRowCount

public int getRowCount()

getRowIterator

protected RowIterator getRowIterator()

getRowIterator

public RowIterator getRowIterator(boolean readOnly)

getSequence

public Sequence getSequence()

getTables

public Iterator getTables()

getType

public final String getType()

hasColumn

public boolean hasColumn(ColumnIdentifier id)

hasIndex

public final boolean hasIndex(String name)

isColumnIndexed

public final boolean isColumnIndexed(Column column)

isPrimaryKeyConstraintExists

public final 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 RowDecorator makeRowDecorator()

makeTransactableTable

public TransactableTable makeTransactableTable()

migrate

public void migrate()

populateIndex

public void populateIndex(Index index)

remount

public void remount(File dir, boolean datafilesonly)

removeConstraint

public Constraint removeConstraint(String name)

removeIndex

public void removeIndex(Index index)

rename

public void rename(String oldName, String newName)

setSequence

public void setSequence(Sequence seq)

setSubQuery

public void setSubQuery(String query)

setType

public void setType(String type)

shutdown

public void shutdown()

toString

public String toString()

truncate

public void truncate()

updateRow

public void updateRow(Row oldrow, Row newrow)