|
|||||||||
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.ReferenceTable
public final class ReferenceTable
This is an implementation of a Table that references a DataTable as its parent. This is a one-to-one relationship unlike the VirtualTable class which is a one-to-many relationship.
The entire purpose of this class is as a filter. We can use it to rename a DataTable class to any domain we feel like. This allows us to generate unique column names.
For example, say we need to join the same table. We can use this method to ensure that the newly joined table won't have duplicate column names.
This object implements RootTable.
Field Summary |
---|
Fields inherited from class com.mckoi.database.FilterTable |
---|
parent |
Fields inherited from class com.mckoi.database.Table |
---|
DEBUG_QUERY |
Method Summary | |
---|---|
int |
findFieldName(Variable v)
Given a fully qualified variable field name, ie. |
DataTableDef |
getDataTableDef()
Returns the 'modified' DataTableDef object for this reference. |
Variable |
getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of the column at the given index. |
TableName |
getTableName()
Filters the name of the table. |
boolean |
typeEquals(RootTable table)
This is function is used to check that two root tables are identical. |
Methods inherited from class com.mckoi.database.FilterTable |
---|
getCellContents, getColumnCount, 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 |
Method Detail |
---|
public TableName getTableName()
public DataTableDef getDataTableDef()
getDataTableDef
in interface TableDataSource
getDataTableDef
in class FilterTable
public int findFieldName(Variable v)
findFieldName
in class FilterTable
public Variable getResolvedVariable(int column)
getResolvedVariable
in class FilterTable
public boolean typeEquals(RootTable table)
RootTable
typeEquals
in interface RootTable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |