public class CreateViewNode extends DDLStatementNode
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
checkOption |
(package private) ColumnInfo[] |
colInfos |
private ValueNode |
fetchFirst |
private boolean |
hasJDBClimitClause |
private ValueNode |
offset |
private OrderByList |
orderByList |
(package private) ProviderInfo[] |
providerInfos |
(package private) java.lang.String |
qeText |
(package private) ResultSetNode |
queryExpression |
(package private) ResultColumnList |
resultColumns |
ADD_TYPE, DROP_STATISTICS, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE, UPDATE_STATISTICSEMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATIONAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor and Description |
|---|
CreateViewNode() |
| Modifier and Type | Method and 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,
NodeFactory nodeFactory,
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.
|
int |
getCheckOption() |
ColumnInfo[] |
getColumnInfo() |
ValueNode |
getFetchFirst() |
ValueNode |
getOffset() |
OrderByList |
getOrderByList() |
(package private) ResultSetNode |
getParsedQueryExpression()
Get the parsed query expression (the SELECT statement).
|
ProviderInfo[] |
getProviderInfo() |
boolean |
hasJDBClimitClause() |
void |
init(java.lang.Object newObjectName,
java.lang.Object resultColumns,
java.lang.Object queryExpression,
java.lang.Object checkOption,
java.lang.Object qeText,
java.lang.Object orderCols,
java.lang.Object offset,
java.lang.Object fetchFirst,
java.lang.Object hasJDBClimitClause)
Initializer for a CreateViewNode
|
ConstantAction |
makeConstantAction()
Create the Constant information that will drive the guts of Execution.
|
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)
|
java.lang.String |
statementToString() |
java.lang.String |
toString()
Convert this object to a String.
|
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic, makeFromListexecuteSchemaName, executeStatementName, generate, getSPSName, lockTableForCompilation, makeResultDescription, needsSavepoint, optimizeStatement, updateIndexStatisticsForaccept, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExistResultColumnList resultColumns
ResultSetNode queryExpression
java.lang.String qeText
int checkOption
ProviderInfo[] providerInfos
ColumnInfo[] colInfos
private OrderByList orderByList
private ValueNode offset
private ValueNode fetchFirst
private boolean hasJDBClimitClause
public void init(java.lang.Object newObjectName,
java.lang.Object resultColumns,
java.lang.Object queryExpression,
java.lang.Object checkOption,
java.lang.Object qeText,
java.lang.Object orderCols,
java.lang.Object offset,
java.lang.Object fetchFirst,
java.lang.Object hasJDBClimitClause)
throws StandardException
init in interface Nodeinit in class QueryTreeNodenewObjectName - 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 syntaxStandardException - Thrown on errorpublic java.lang.String toString()
toString in class DDLStatementNodepublic java.lang.String statementToString()
statementToString in class StatementNodepublic void printSubNodes(int depth)
printSubNodes in class QueryTreeNodedepth - The depth of this node in the treepublic int getCheckOption()
public ProviderInfo[] getProviderInfo()
public ColumnInfo[] getColumnInfo()
public void bindStatement()
throws StandardException
bindStatement in class StatementNodeStandardException - Thrown on errorprivate ProviderInfo[] bindViewDefinition(DataDictionary dataDictionary, CompilerContext compilerContext, LanguageConnectionContext lcc, NodeFactory nodeFactory, 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 QueryTreeNodev - the visitorStandardException - on errorpublic OrderByList getOrderByList()
public ValueNode getOffset()
public ValueNode getFetchFirst()
public boolean hasJDBClimitClause()
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.