public class SelectScope extends SqlScope
This is a framework internal class! Backward compatibility is not guaranteed.
appOwner, dbCache, log, parser
Constructor and Description |
---|
SelectScope(int nr,
PlsqlScope outerScope,
PlsqlScope previous,
AbstractParser parser,
boolean createSelectItemAliasList)
Creates a new SelectScope.
|
Modifier and Type | Method and Description |
---|---|
protected void |
beginPivotClause() |
protected void |
beginPivotForClause() |
protected void |
beginPivotInClause() |
void |
close() |
boolean |
containsSelectItem(java.lang.String name) |
protected void |
endPivotClause() |
PlsqlScope |
getPreviousScope()
Gets the previous (parent) scope in the parsed tree of scopes.
|
java.lang.String[] |
getSelectList()
Gets the select list for this select statement.
|
protected java.util.Set<java.lang.String> |
getSelectSet() |
protected boolean |
inOrderBy()
Checks if the current parsing location is in ORDER BY clause.
|
boolean |
isValidationDelayed() |
void |
registerColumn(java.lang.String id)
Register a column reference found in this scope.
|
protected void |
registerPivotAggregateColumnAlias(java.lang.String alias) |
protected void |
registerPivotInColumnAlias(java.lang.String alias) |
protected void |
registerPivotTableAlias(java.lang.String alias) |
void |
registerSelectItem(java.lang.String alias)
Registers a select item for this select statement.
|
void |
registerVirtualTable(java.lang.String alias,
java.util.Set<java.lang.String> selectList)
Register a virtual table found in the FROM list of this SELECT scope.
|
findColumn, getTable, getTables, registerTable, registerTable
beginPlsqlRecordDefinition, endPlsqlRecordDefinition, findPlsqlRecord, findPlsqlRecordType, findPlsqlVariableType, findSimplePlsqlVariable, getLevel, getNr, getOuterPlsqlScope, getOuterScope, getPlsqlRecord, getPlsqlVariable, getPlsqlVariableType, getProcedures, getRecordType, isPlsqlField, log, registerPlsqlRecord, registerPlsqlRecordField, registerPlsqlRecordVariable, registerPlsqlRowtypeVariable, registerPlsqlSubtypeDefinition, registerPlsqlVariable, registerPlsqlVariableType, registerProcedure, registerTableColumnType, toString
public SelectScope(int nr, PlsqlScope outerScope, PlsqlScope previous, AbstractParser parser, boolean createSelectItemAliasList)
nr
- the unique number identifying this scopeouterScope
- the outer scope if this scope is a nested scope, null this scope has no outer scope.public PlsqlScope getPreviousScope()
getPreviousScope
in class PlsqlScope
public void registerSelectItem(java.lang.String alias)
alias
- alias or column (schema.table will be removed, if any), "*" or nullprotected boolean inOrderBy()
public boolean isValidationDelayed()
public void registerVirtualTable(java.lang.String alias, java.util.Set<java.lang.String> selectList) throws RejectedSqlException
alias
- table alias or nullRejectedSqlException
protected java.util.Set<java.lang.String> getSelectSet()
public java.lang.String[] getSelectList()
public void close() throws IfsException
close
in class SqlScope
IfsException
public boolean containsSelectItem(java.lang.String name)
public void registerColumn(java.lang.String id)
registerColumn
in class SqlScope
id
- column ID found in SQL text (schema.table.column, table.column or column)protected void beginPivotClause()
protected void beginPivotForClause()
protected void beginPivotInClause()
protected void endPivotClause() throws RejectedSqlException
RejectedSqlException
protected void registerPivotAggregateColumnAlias(java.lang.String alias)
protected void registerPivotInColumnAlias(java.lang.String alias)
protected void registerPivotTableAlias(java.lang.String alias)