|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.Table
com.mckoi.database.AbstractDataTable
com.mckoi.database.DefaultDataTable
public abstract class DefaultDataTable
This represents a default implementation of a DataTable. It encapsulates information that is core to all DataTable objects. That is,
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.
Field Summary | |
---|---|
protected int |
row_count
The number of rows in the table. |
Fields inherited from class com.mckoi.database.Table |
---|
DEBUG_QUERY |
Method Summary | |
---|---|
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. |
Methods inherited from class com.mckoi.database.AbstractDataTable |
---|
getTableName, toString, typeEquals |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int row_count
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |