|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.sql.SqlValidator.Scope | +--net.sf.saffron.sql.SqlValidator.SelectScope
The name-resolution scope of a SELECT clause. The objects visible are those in the FROM clause, and objects inherited from the parent scope.
Field Summary | |
private ArrayList |
children
List of child scopes , set on validate. |
private ArrayList |
childrenNames
Aliases of the child scopes , set on
validate. |
private SaffronType |
rowType
Type of the output row, which comprises the name and type of each output column. |
SqlSelect |
select
|
private int |
validateCount
|
Fields inherited from class net.sf.saffron.sql.SqlValidator.Scope |
parent |
Constructor Summary | |
(package private) |
SqlValidator.SelectScope(SqlValidator.Scope parent,
SqlSelect select,
String alias)
|
Method Summary | |
protected String |
findQualifyingTableName(String columnName)
|
private SqlValidator.Scope |
getChild(String alias)
|
(package private) SqlNode |
getNode()
|
SaffronType |
getRowType()
Returns a list of names of output columns. |
SqlValidator.Scope |
resolve(String name,
SqlValidator.Scope[] ancestorOut,
int[] offsetOut)
Looks up a node with a given name. |
SaffronType |
resolveColumn(String name)
|
void |
validate()
|
Methods inherited from class net.sf.saffron.sql.SqlValidator.Scope |
deriveAlias, fullyQualify, getAlias, getScopeFromNode, getTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int validateCount
public final SqlSelect select
private final ArrayList children
child scopes
, set on validate.
private final ArrayList childrenNames
child scopes
, set on
validate.
private SaffronType rowType
Constructor Detail |
SqlValidator.SelectScope(SqlValidator.Scope parent, SqlSelect select, String alias)
Method Detail |
protected String findQualifyingTableName(String columnName)
findQualifyingTableName
in class SqlValidator.Scope
public SaffronType getRowType()
SqlValidator.Scope
getRowType
in class SqlValidator.Scope
public void validate()
validate
in class SqlValidator.Scope
SqlNode getNode()
getNode
in class SqlValidator.Scope
private SqlValidator.Scope getChild(String alias)
public SqlValidator.Scope resolve(String name, SqlValidator.Scope[] ancestorOut, int[] offsetOut)
SqlValidator.Scope
resolve
in class SqlValidator.Scope
name
- Name of node to findancestorOut
- If not null, writes the ancestor scope hereoffsetOut
- If not null, writes the offset within the ancestor
herepublic SaffronType resolveColumn(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |