|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mckoi.database.interpret.FromTableSubQuerySource
public class FromTableSubQuerySource
An implementation of FromTableInterface that wraps around a TableSelectExpression object as a sub-query source.
| Constructor Summary | |
|---|---|
FromTableSubQuerySource(DatabaseConnection connection,
java.lang.String unique_key,
TableSelectExpression table_expression,
com.mckoi.database.interpret.TableExpressionFromSet from_set,
TableName aliased_table_name)
Constructs the source. |
|
| Method Summary | |
|---|---|
Variable[] |
allColumns()
Returns an array of Variable objects that references each column available in this table set item in order from left column to right column. |
java.lang.String |
getUniqueKey()
Returns the unique name of this source. |
java.lang.String |
getUniqueName()
Returns a unique name given to this table source. |
boolean |
matchesReference(java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
Returns true if this source will match the given catalog, schema and table. |
Variable |
resolveColumn(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column)
Returns a Variable that is a fully resolved form of the given column in this table set. |
int |
resolveColumnCount(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column)
Returns the number of instances we can resolve the given catalog, schema, table and column name to a column or columns within this item. |
void |
setCaseInsensitive(boolean status)
Toggle the case sensitivity flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FromTableSubQuerySource(DatabaseConnection connection,
java.lang.String unique_key,
TableSelectExpression table_expression,
com.mckoi.database.interpret.TableExpressionFromSet from_set,
TableName aliased_table_name)
| Method Detail |
|---|
public java.lang.String getUniqueKey()
public void setCaseInsensitive(boolean status)
public java.lang.String getUniqueName()
FromTableInterface
getUniqueName in interface FromTableInterface
public boolean matchesReference(java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
FromTableInterfaceUsed for 'Part.*' type glob searches.
matchesReference in interface FromTableInterface
public int resolveColumnCount(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column)
FromTableInterfaceFor example, say we need to resolve the column 'id' the arguments are null, null, null, "id". This may resolve to multiple columns if there is a mixture of tables with "id" as a column.
Note that parameters of 'null, null, null, null', 'null, null, null, not null', 'null, null, not null, not null', 'null, not null, not null, not null', and 'not null, not null, not null, not null' are only accepted.
resolveColumnCount in interface FromTableInterface
public Variable resolveColumn(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
java.lang.String column)
FromTableInterface
resolveColumn in interface FromTableInterfacepublic Variable[] allColumns()
FromTableInterface
allColumns in interface FromTableInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||