Method Summary |
|
void | addColumn(Column col) Add the given
Column to this table. |
void | addConstraint(Constraint constraint) |
void | addIndex(Index index) Add an index, associating it with a
Column , and adding it as a
org.axiondb.TableModificationListener to the table. |
void | addRow(Row row) Insert the given
Row . |
void | addTableModificationListener(TableModificationListener listener) |
void | applyDeletes(IntCollection rowids) Remove the specified rows from this table and any associated indices. |
void | applyInserts(RowCollection rows) Insert the given rows into this table and any associated indices. |
void | applyUpdates(RowCollection rows) Update the given rows in this table and any associated indices. |
void | checkpoint() |
void | deleteRow(Row row) Delete the given
Row . |
void | drop() Drop this table from the database. |
void | freeRowId(int id) Un-reserve a row id. |
Column | getColumn(int index) Return the
Column corresponding to the given zero-based index . |
Column | getColumn(String name) Return the
Column for the given name . |
int | getColumnCount() Return the number of
Column s I contain. |
List | getColumnIdentifiers() Return an readonly
List over the
ColumnIdentifier ColumnIdentifiers for
my
Column s. |
int | getColumnIndex(String name) Return the zero-based index of the
Column with the given name . |
Constraint | getConstraint(String name) |
Iterator | getConstraints() |
Index | getIndexForColumn(Column column) Return the first
Index that pertains to the given
Column , or
null if no such
Index exists. |
RowIterator | getIndexedRows(Selectable where, boolean readOnly) |
RowIterator | getIndexedRows(RowSource source, Selectable where, boolean readOnly) |
Iterator<Index> | getIndices() Obtain an
Iterator over my indices. |
RowIterator | getMatchingRows(List selectables, List values, boolean readOnly) Obtain an
RowIterator iterator over my
Row s where each
Selectable Selectable in the selectable
List listSelectable.evaluate evaluates to the corresponding value in the value
List list .
This is functionally similiar to executing a SELECT over this table where
selectable[i] = value[i] for each value of i . |
String | getName() Get the name of this table. |
int | getNextRowId() Reserve a row id. |
int | getRowCount() Return the number of
Row s I contain. |
RowIterator | getRowIterator(boolean readOnly) Obtain an
RowIterator iterator over my
Row s. |
Sequence | getSequence() |
Iterator<TableModificationListener> | getTableModificationListeners() |
String | getType() Get the type of this table. |
boolean | hasColumn(ColumnIdentifier id) |
boolean | hasIndex(String name) |
boolean | isColumnIndexed(Column column) |
boolean | isPrimaryKeyConstraintExists(String columnName) |
boolean | isUniqueConstraintExists(String columnName) |
RowDecorator | makeRowDecorator() |
TransactableTable | makeTransactableTable() Create a
TransactableTable for this table. |
void | migrate() |
void | populateIndex(Index index) Populate an
Index , adding my current rows to it. |
void | remount(File dir, boolean dataOnly) Notify this table that its disk-location has moved. |
Constraint | removeConstraint(String name) |
void | removeIndex(Index index) |
void | removeTableModificationListener(TableModificationListener listener) |
void | rename(String oldName, String newName) |
void | setDeferAllConstraints(boolean deferAll) |
void | setSequence(Sequence seq) |
void | shutdown() The database is shutting down, shutdown this table also. |
void | truncate() Unconditionally delete all rows in this table. |
void | updateRow(Row oldrow, Row newrow) Update the given
Row . |