Visitableclass CreateViewNode extends DDLStatementNode
| Modifier and Type | Field | Description |
|---|---|---|
private int |
checkOption |
|
private ColumnInfo[] |
colInfos |
|
private ValueNode |
fetchFirst |
|
private boolean |
hasJDBClimitClause |
|
private ValueNode |
offset |
|
private OrderByList |
orderByList |
|
private ProviderInfo[] |
providerInfos |
|
private java.lang.String |
qeText |
|
private ResultSetNode |
queryExpression |
|
private ResultColumnList |
resultColumns |
ADD_TYPE, DROP_STATISTICS, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE, UPDATE_STATISTICSAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEXEMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION| Constructor | Description |
|---|---|
CreateViewNode(TableName viewName,
ResultColumnList resultColumns,
ResultSetNode queryExpression,
int checkOption,
java.lang.String qeText,
OrderByList orderCols,
ValueNode offset,
ValueNode fetchFirst,
boolean hasJDBClimitClause,
ContextManager cm) |
Constructor for a CreateViewNode
|
| Modifier and Type | Method | Description |
|---|---|---|
(package private) void |
acceptChildren(Visitor v) |
Accept the visitor for all visitable children of this node.
|
void |
bindStatement() |
Bind this CreateViewNode.
|
private ProviderInfo[] |
bindViewDefinition(DataDictionary dataDictionary,
CompilerContext compilerContext,
LanguageConnectionContext lcc,
OptimizerFactory optimizerFactory,
ResultSetNode queryExpr,
ContextManager cm) |
Bind the query expression for a view definition.
|
private void |
genColumnInfos(ColumnInfo[] colInfos) |
Fill in the ColumnInfo[] for this create view.
|
ValueNode |
getFetchFirst() |
|
ValueNode |
getOffset() |
|
OrderByList |
getOrderByList() |
|
(package private) ResultSetNode |
getParsedQueryExpression() |
Get the parsed query expression (the SELECT statement).
|
boolean |
hasJDBClimitClause() |
|
ConstantAction |
makeConstantAction() |
Create the Constant information that will drive the guts of Execution.
|
(package private) void |
printSubNodes(int depth) |
Prints the sub-nodes of this object.
|
boolean |
referencesSessionSchema() |
Return true if the node references SESSION schema tables (temporary or permanent)
|
(package private) java.lang.String |
statementToString() |
|
java.lang.String |
toString() |
Convert this object to a String.
|
activationKind, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, initAndCheck, isAtomic, makeFromListclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExistexecuteSchemaName, executeStatementName, generate, getCursorInfo, getSPSName, lockTableForCompilation, makeResultDescription, needsSavepoint, optimizeStatement, updateIndexStatisticsForprivate ResultColumnList resultColumns
private ResultSetNode queryExpression
private java.lang.String qeText
private int checkOption
private ProviderInfo[] providerInfos
private ColumnInfo[] colInfos
private OrderByList orderByList
private ValueNode offset
private ValueNode fetchFirst
private boolean hasJDBClimitClause
CreateViewNode(TableName viewName, ResultColumnList resultColumns, ResultSetNode queryExpression, int checkOption, java.lang.String qeText, OrderByList orderCols, ValueNode offset, ValueNode fetchFirst, boolean hasJDBClimitClause, ContextManager cm) throws StandardException
viewName - The name of the table to be createdresultColumns - The column list from the view definition,
if specifiedqueryExpression - The query expression for the viewcheckOption - The type of WITH CHECK OPTION that was specified
(NONE for now)qeText - The text for the queryExpressionorderCols - ORDER BY listoffset - OFFSET if any, or nullfetchFirst - FETCH FIRST if any, or nullhasJDBClimitClause - True if the offset/fetchFirst clauses come from JDBC limit/offset escape syntaxcm - Context managerStandardException - Thrown on errorpublic java.lang.String toString()
toString in class DDLStatementNodejava.lang.String statementToString()
statementToString in class StatementNodevoid printSubNodes(int depth)
printSubNodes in class QueryTreeNodedepth - The depth of this node in the treepublic void bindStatement()
throws StandardException
bindStatement in class StatementNodeStandardException - Thrown on errorprivate ProviderInfo[] bindViewDefinition(DataDictionary dataDictionary, CompilerContext compilerContext, LanguageConnectionContext lcc, OptimizerFactory optimizerFactory, ResultSetNode queryExpr, ContextManager cm) throws StandardException
dataDictionary - The DataDictionary to use to look up
columns, tables, etc.StandardException - Thrown on errorpublic boolean referencesSessionSchema()
throws StandardException
referencesSessionSchema in class QueryTreeNodeStandardException - Thrown on errorpublic ConstantAction makeConstantAction() throws StandardException
makeConstantAction in class QueryTreeNodeStandardException - Thrown on failureprivate void genColumnInfos(ColumnInfo[] colInfos)
colInfos - The ColumnInfo[] to be filled in.ResultSetNode getParsedQueryExpression()
void acceptChildren(Visitor v) throws StandardException
acceptChildren in class DDLStatementNodev - the visitorStandardException - on errorpublic OrderByList getOrderByList()
public ValueNode getOffset()
public ValueNode getFetchFirst()
public boolean hasJDBClimitClause()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.