|
|||||||||
| 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.FilterTable
public class FilterTable
A table that is a filter for another table. By default, all Table methods are implemented to call the parent. This class should be used when we want to implement a Table filter of some kind. For example, a filter for specific columns, or even rows, etc.
NOTE: For efficiency reasons, this will store SelectableScheme objects generated by the parent like VirtualTable.
| Field Summary | |
|---|---|
protected Table |
parent
The Table we are filtering the columns from. |
| Fields inherited from class com.mckoi.database.Table |
|---|
DEBUG_QUERY |
| Constructor Summary | |
|---|---|
FilterTable(Table parent)
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 parent Database object. |
DataTableDef |
getDataTableDef()
Returns a DataTableDef object that defines the name of the table and the layout of the columns of the table. |
protected Table |
getParent()
Returns the parent 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. |
void |
printGraph(java.io.PrintStream out,
int indent)
Prints a graph of the table hierarchy to the stream. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Table parent
| Constructor Detail |
|---|
public FilterTable(Table parent)
| Method Detail |
|---|
protected Table getParent()
public Database getDatabase()
getDatabase in class Tablepublic int getColumnCount()
getColumnCount in class Tablepublic int getRowCount()
getRowCount in interface TableDataSourcegetRowCount in class Tablepublic int findFieldName(Variable v)
findFieldName in class Tablepublic Variable getResolvedVariable(int column)
getResolvedVariable in class Table
public TObject getCellContents(int column,
int row)
getCellContents in interface TableDataSourcegetCellContents in class Tablepublic RowEnumeration rowEnumeration()
rowEnumeration in interface TableDataSourcerowEnumeration in class Tablepublic DataTableDef getDataTableDef()
getDataTableDef in interface TableDataSourcegetDataTableDef in class Tablepublic void lockRoot(int lock_key)
lockRoot in class Tablepublic void unlockRoot(int lock_key)
unlockRoot in class Tablepublic boolean hasRootsLocked()
hasRootsLocked in class Table
public void printGraph(java.io.PrintStream out,
int indent)
printGraph in class Table
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||