| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private ColumnInfo[] | |
| private ValueNode | |
| private boolean | |
| private ValueNode | |
| private OrderByList | |
| private ProviderInfo[] | |
| private String | |
| private ResultSetNode | |
| private ResultColumnList |
| Access | Constructor and Description |
|---|---|
| pack-priv | CreateViewNode(TableName
The name of the table to be created viewName, ResultColumnList The column list from the view definition,
if specified resultColumns, ResultSetNode The query expression for the view queryExpression, int The type of WITH CHECK OPTION that was specified
(NONE for now) checkOption, String The text for the queryExpression qeText, OrderByList ORDER BY list orderCols, ValueNode OFFSET if any, or null offset, ValueNode FETCH FIRST if any, or null fetchFirst, boolean True if the offset/fetchFirst clauses come from JDBC limit/offset escape syntax hasJDBClimitClause, ContextManager Context manager cm)Constructor for a CreateViewNode |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | acceptChildren(Visitor
the visitor v)Overrides org. Accept the visitor for all visitable children of this node. |
| public void | bindStatement()
Overrides org. Bind this CreateViewNode. |
| private ProviderInfo[] | Returns: Array of providers that this view depends on.The DataDictionary to use to look up
columns, tables, etc. dataDictionary, CompilerContext compilerContext, LanguageConnectionContext lcc, OptimizerFactory optimizerFactory, ResultSetNode queryExpr, ContextManager cm)Bind the query expression for a view definition. |
| private void | genColumnInfos(ColumnInfo[]
The ColumnInfo[] to be filled in. colInfos)Fill in the ColumnInfo[] for this create view. |
| public ValueNode | |
| public ValueNode | |
| public OrderByList | |
| pack-priv ResultSetNode | Returns: the parsed query expression.Get the parsed query expression (the SELECT statement). |
| public boolean | |
| public ConstantAction | makeConstantAction()
Overrides org. Create the Constant information that will drive the guts of Execution. |
| pack-priv void | printSubNodes(int
The depth of this node in the tree depth)Overrides org. Prints the sub-nodes of this object. |
| public boolean | Returns: true if references SESSION schema tables, else falseOverrides org. Return true if the node references SESSION schema tables (temporary or permanent) |
| pack-priv String | statementToString()
Implements abstract org.
|
| public String | Returns: This object as a StringOverrides org. Convert this object to a String. |
| checkOption | back to summary |
|---|---|
| private int checkOption | |
| colInfos | back to summary |
|---|---|
| private ColumnInfo[] colInfos | |
| fetchFirst | back to summary |
|---|---|
| private ValueNode fetchFirst | |
| hasJDBClimitClause | back to summary |
|---|---|
| private boolean hasJDBClimitClause | |
| offset | back to summary |
|---|---|
| private ValueNode offset | |
| orderByList | back to summary |
|---|---|
| private OrderByList orderByList | |
| providerInfos | back to summary |
|---|---|
| private ProviderInfo[] providerInfos | |
| qeText | back to summary |
|---|---|
| private String qeText | |
| queryExpression | back to summary |
|---|---|
| private ResultSetNode queryExpression | |
| resultColumns | back to summary |
|---|---|
| private ResultColumnList resultColumns | |
| CreateViewNode | back to summary |
|---|---|
| pack-priv CreateViewNode(TableName viewName, ResultColumnList resultColumns, ResultSetNode queryExpression, int checkOption, String qeText, OrderByList orderCols, ValueNode offset, ValueNode fetchFirst, boolean hasJDBClimitClause, ContextManager cm) throws StandardException Constructor for a CreateViewNode
| |
| acceptChildren | back to summary |
|---|---|
| pack-priv void acceptChildren(Visitor v) throws StandardException Overrides org. Accept the visitor for all visitable children of this node.
| |
| bindStatement | back to summary |
|---|---|
| public void bindStatement() throws StandardException Overrides org. Bind this CreateViewNode. This means doing any static error checking that can be done before actually creating the table. For example, verifying that the ResultColumnList does not contain any duplicate column names.
| |
| bindViewDefinition | back to summary |
|---|---|
| private ProviderInfo[] bindViewDefinition(DataDictionary dataDictionary, CompilerContext compilerContext, LanguageConnectionContext lcc, OptimizerFactory optimizerFactory, ResultSetNode queryExpr, ContextManager cm) throws StandardException Bind the query expression for a view definition.
| |
| genColumnInfos | back to summary |
|---|---|
| private void genColumnInfos(ColumnInfo[] colInfos) Fill in the ColumnInfo[] for this create view.
| |
| getFetchFirst | back to summary |
|---|---|
| public ValueNode getFetchFirst() | |
| getOffset | back to summary |
|---|---|
| public ValueNode getOffset() | |
| getOrderByList | back to summary |
|---|---|
| public OrderByList getOrderByList() | |
| getParsedQueryExpression | back to summary |
|---|---|
| pack-priv ResultSetNode getParsedQueryExpression() Get the parsed query expression (the SELECT statement).
| |
| hasJDBClimitClause | back to summary |
|---|---|
| public boolean hasJDBClimitClause() | |
| makeConstantAction | back to summary |
|---|---|
| public ConstantAction makeConstantAction() throws StandardException Overrides org. Create the Constant information that will drive the guts of Execution.
| |
| printSubNodes | back to summary |
|---|---|
| pack-priv void printSubNodes(int depth) Overrides org. Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.
| |
| referencesSessionSchema | back to summary |
|---|---|
| public boolean referencesSessionSchema() throws StandardException Overrides org. Return true if the node references SESSION schema tables (temporary or permanent)
| |
| statementToString | back to summary |
|---|---|
| pack-priv String statementToString() Implements abstract org. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. | |