com.akiban.sql.parser
Class CreateViewNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.StatementNode
com.akiban.sql.parser.DDLStatementNode
com.akiban.sql.parser.CreateViewNode
- All Implemented Interfaces:
- Visitable
public class CreateViewNode
- extends DDLStatementNode
A CreateViewNode is the root of a QueryTree that represents a CREATE VIEW
statement.
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint |
NO_CHECK_OPTION
public static final int NO_CHECK_OPTION
- See Also:
- Constant Field Values
CreateViewNode
public CreateViewNode()
init
public void init(Object newObjectName,
Object resultColumns,
Object queryExpression,
Object checkOption,
Object qeText,
Object orderCols,
Object offset,
Object fetchFirst,
Object existenceCheck)
throws StandardException
- Initializer for a CreateViewNode
- Overrides:
init in class QueryTreeNode
- Parameters:
newObjectName - 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 null
- Throws:
StandardException - Thrown on error
copyFrom
public void copyFrom(QueryTreeNode node)
throws StandardException
- Fill this node with a deep copy of the given node.
- Overrides:
copyFrom in class DDLStatementNode
- Throws:
StandardException
toString
public String toString()
- Convert this object to a String. See comments in QueryTreeNode.java
for how this should be done for tree printing.
- Overrides:
toString in class DDLStatementNode
- Returns:
- This object as a String
statementToString
public String statementToString()
- Specified by:
statementToString in class StatementNode
printSubNodes
public void printSubNodes(int depth)
- Prints the sub-nodes of this object. See QueryTreeNode.java for
how tree printing is supposed to work.
- Overrides:
printSubNodes in class QueryTreeNode
- Parameters:
depth - The depth of this node in the tree
getCheckOption
public int getCheckOption()
getResultColumns
public ResultColumnList getResultColumns()
getQueryExpression
public String getQueryExpression()
getParsedQueryExpression
public ResultSetNode getParsedQueryExpression()
getOrderByList
public OrderByList getOrderByList()
getOffset
public ValueNode getOffset()
getFetchFirst
public ValueNode getFetchFirst()
getExistenceCheck
public ExistenceCheck getExistenceCheck()
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.