|
|||||||||
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.DataTableFilter
public class DataTableFilter
This object sits on top of a DataTable object filtering out certain types of calls. We could use this object to implement a ReferenceTable which can be used to declare a new table name with a DataTable type. We also use this object to implement a filter for column removals.
Field Summary | |
---|---|
protected AbstractDataTable |
parent
The parent DataTable object. |
Fields inherited from class com.mckoi.database.Table |
---|
DEBUG_QUERY |
Constructor Summary | |
---|---|
protected |
DataTableFilter(AbstractDataTable table)
The Constructor. |
Method Summary | |
---|---|
int |
findFieldName(Variable v)
Given a fully qualified variable field name, ie. |
TObject |
getCellContents(int column,
int row)
Returns an object that represents the information in the given cell in the table. |
int |
getColumnCount()
Returns the number of columns in the table. |
Database |
getDatabase()
Returns the Database context for this filtered table. |
DataTableDef |
getDataTableDef()
Returns a DataTableDef object that defines the name of the table and the layout of the columns of the table. |
Variable |
getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of the column at the given index. |
int |
getRowCount()
Returns the number of rows stored in the table. |
boolean |
hasRootsLocked()
Returns true if the table has its row roots locked (via the lockRoot(int) method. |
void |
lockRoot(int lock_key)
Locks the root table(s) of this table so that it is impossible to overwrite the underlying rows that may appear in this table. |
RowEnumeration |
rowEnumeration()
Returns an Enumeration of the rows in this table. |
void |
unlockRoot(int lock_key)
Unlocks the root tables so that the underlying rows may once again be used if they are not locked and have been removed. |
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 AbstractDataTable parent
Constructor Detail |
---|
protected DataTableFilter(AbstractDataTable table)
Method Detail |
---|
public Database getDatabase()
getDatabase
in class Table
public int getColumnCount()
getColumnCount
in class Table
public final int getRowCount()
getRowCount
in interface TableDataSource
getRowCount
in class Table
public int findFieldName(Variable v)
findFieldName
in class Table
public Variable getResolvedVariable(int column)
getResolvedVariable
in class Table
public final TObject getCellContents(int column, int row)
getCellContents
in interface TableDataSource
getCellContents
in class Table
public final RowEnumeration rowEnumeration()
rowEnumeration
in interface TableDataSource
rowEnumeration
in class Table
public DataTableDef getDataTableDef()
getDataTableDef
in interface TableDataSource
getDataTableDef
in class Table
public void lockRoot(int lock_key)
lockRoot
in class Table
public void unlockRoot(int lock_key)
unlockRoot
in class Table
public boolean hasRootsLocked()
hasRootsLocked
in class Table
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |