|
|||||||||
| 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
com.mckoi.database.SubsetColumnTable
public final class SubsetColumnTable
This object is a filter that sits atop a Table object. Its purpose is to only provide a view of the columns that are required. In a Select query we may create a query with only the subset of columns that were originally in the table set. This object allows us to provide an interface to only the columns that the Table is allowed to access.
This method implements RootTable which means a union operation will not decend further past this table when searching for the roots.
| Field Summary |
|---|
| Fields inherited from class com.mckoi.database.FilterTable |
|---|
parent |
| Fields inherited from class com.mckoi.database.Table |
|---|
DEBUG_QUERY |
| Constructor Summary | |
|---|---|
SubsetColumnTable(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. |
DataTableDef |
getDataTableDef()
Returns the DataTableDef object that describes the columns and name of this table. |
Variable |
getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of the column at the given index. |
void |
setColumnMap(int[] mapping,
Variable[] aliases)
Adds a column map into this table. |
java.lang.String |
toString()
Returns a string that represents this table. |
boolean |
typeEquals(RootTable table)
This function is used to check that two tables are identical. |
| Methods inherited from class com.mckoi.database.FilterTable |
|---|
getDatabase, getParent, getRowCount, hasRootsLocked, lockRoot, printGraph, rowEnumeration, unlockRoot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubsetColumnTable(Table parent)
| Method Detail |
|---|
public void setColumnMap(int[] mapping,
Variable[] aliases)
public int getColumnCount()
getColumnCount in class FilterTablepublic int findFieldName(Variable v)
findFieldName in class FilterTablepublic DataTableDef getDataTableDef()
getDataTableDef in interface TableDataSourcegetDataTableDef in class FilterTablepublic Variable getResolvedVariable(int column)
getResolvedVariable in class FilterTable
public final TObject getCellContents(int column,
int row)
getCellContents in interface TableDataSourcegetCellContents in class FilterTablepublic boolean typeEquals(RootTable table)
typeEquals in interface RootTablepublic java.lang.String toString()
toString in class Table
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||