public abstract class DefaultDataTable extends AbstractDataTable
The table name, The description of the table fields, A set of SelectableScheme objects to describe row relations, A counter for the number of rows in the table.
There are two classes that extend this object. DataTable which is a DataTable that is a direct mapping to an internal table stored in the Database files. And TemporaryTable that contains information generated on the fly by the DBMS.
Modifier and Type | Field and Description |
---|---|
protected int |
row_count
The number of rows in the table.
|
DEBUG_QUERY
Modifier and Type | Method and Description |
---|---|
protected void |
blankSelectableSchemes()
Blanks all the column schemes in the table to an initial state.
|
protected void |
blankSelectableSchemes(int type)
Blanks all the column schemes in this table to a specific type of
scheme.
|
protected void |
clearColumnScheme(int column)
Clears the SelectableScheme information for the given column.
|
int |
findFieldName(Variable v)
Given a fully qualified variable field name, ie.
|
int |
getColumnCount()
Returns the number of columns in the table.
|
Database |
getDatabase()
Returns the Database object this table is part of.
|
Variable |
getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of
the column at the given index.
|
protected SelectableScheme |
getRootColumnScheme(int column)
Returns the SelectableScheme for the given column.
|
int |
getRowCount()
Returns the number of rows stored in the table.
|
getTableName, toString, typeEquals
all, allColumnMatchesValue, any, columnContainsCell, columnContainsValue, columnMatchesValue, columnMerge, compareCells, Debug, distinct, distinct, dumpTo, emptySelect, exhaustiveSelect, fastFindFieldName, getCellContents, getColumnDefAt, getColumnScheme, getDataTableDef, getFirstCellContent, getFirstCellContent, getLastCellContent, getLastCellContent, getSingleCellContent, getSingleCellContent, getSystem, getTableAccessState, getTTypeForColumn, getTTypeForColumn, hasRootsLocked, join, lockRoot, orderByColumn, orderByColumn, orderByColumn, orderByColumns, orderedRowList, outside, printGraph, rangeSelect, rowEnumeration, selectAll, selectAll, selectFirst, selectLast, selectRange, selectRest, simpleJoin, simpleSelect, singleRowSelect, toMap, union, unlockRoot
public Database getDatabase()
getDatabase
in class Table
protected SelectableScheme getRootColumnScheme(int column)
protected void clearColumnScheme(int column)
protected void blankSelectableSchemes()
NOTE: The current default SelectableScheme type is InsertSearch. We may want to make this variable.
protected void blankSelectableSchemes(int type)
public int getColumnCount()
getColumnCount
in class Table
public int getRowCount()
getRowCount
in interface TableDataSource
getRowCount
in class Table
public Variable getResolvedVariable(int column)
getResolvedVariable
in class Table
public int findFieldName(Variable v)
findFieldName
in class Table
Copyright © 2015. All rights reserved.