|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.StatementNode
org.apache.derby.impl.sql.compile.DDLStatementNode
org.apache.derby.impl.sql.compile.CreateStatementNode
org.apache.derby.impl.sql.compile.CreateViewNode
A CreateViewNode is the root of a QueryTree that represents a CREATE VIEW statement.
Field Summary | |
(package private) int |
checkOption
|
(package private) ColumnInfo[] |
colInfos
|
(package private) Dependent |
currentDependent
|
(package private) ProviderInfo[] |
providerInfos
|
(package private) java.lang.String |
qeText
|
(package private) ResultSetNode |
queryExpression
|
(package private) ResultColumnList |
resultColumns
|
Fields inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
ADD_TYPE, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE |
Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode |
NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION |
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset |
Constructor Summary | |
CreateViewNode()
|
Method Summary | |
Visitable |
accept(Visitor v)
Accept a visitor, and call v.visit() on child nodes as necessary. |
QueryTreeNode |
bind()
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()
|
(package private) ResultSetNode |
getParsedQueryExpression()
Get the parsed query expression (the SELECT statement). |
ProviderInfo[] |
getProviderInfo()
|
void |
init(java.lang.Object newObjectName,
java.lang.Object resultColumns,
java.lang.Object queryExpression,
java.lang.Object checkOption,
java.lang.Object qeText)
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. |
Methods inherited from class org.apache.derby.impl.sql.compile.CreateStatementNode |
alterItem, isCreate |
Methods inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic |
Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode |
generate, lockTableForCompilation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
Dependent currentDependent
ResultColumnList resultColumns
ResultSetNode queryExpression
java.lang.String qeText
int checkOption
ProviderInfo[] providerInfos
ColumnInfo[] colInfos
Constructor Detail |
public CreateViewNode()
Method Detail |
public void init(java.lang.Object newObjectName, java.lang.Object resultColumns, java.lang.Object queryExpression, java.lang.Object checkOption, java.lang.Object qeText) throws StandardException
init
in class QueryTreeNode
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 queryExpression
StandardException
- Thrown on errorpublic java.lang.String toString()
toString
in class DDLStatementNode
public java.lang.String statementToString()
statementToString
in class StatementNode
public void printSubNodes(int depth)
printSubNodes
in class QueryTreeNode
depth
- The depth of this node in the tree
public int getCheckOption()
public ProviderInfo[] getProviderInfo()
public ColumnInfo[] getColumnInfo()
public QueryTreeNode bind() throws StandardException
bind
in class QueryTreeNode
StandardException
- 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 QueryTreeNode
StandardException
- Thrown on errorpublic ConstantAction makeConstantAction() throws StandardException
makeConstantAction
in class QueryTreeNode
StandardException
- Thrown on failureprivate void genColumnInfos(ColumnInfo[] colInfos)
colInfos
- The ColumnInfo[] to be filled in.
ResultSetNode getParsedQueryExpression()
public Visitable accept(Visitor v) throws StandardException
accept
in interface Visitable
accept
in class QueryTreeNode
v
- the visitor
StandardException
- on error
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |