public class CreateTableNode extends DDLStatementNode
| Modifier and Type | Field and Description |
|---|---|
private char |
lockGranularity |
private boolean |
onCommitDeleteRows |
private boolean |
onRollbackDeleteRows |
private java.util.Properties |
properties |
private ResultSetNode |
queryExpression |
private ResultColumnList |
resultColumns |
private TableElementList |
tableElementList |
protected int |
tableType |
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 |
|---|
CreateTableNode() |
| 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 CreateTableNode.
|
void |
init(java.lang.Object newObjectName,
java.lang.Object resultColumns,
java.lang.Object queryExpression)
Initializer for a CreateTableNode for a base table create from a query
|
void |
init(java.lang.Object newObjectName,
java.lang.Object tableElementList,
java.lang.Object properties,
java.lang.Object lockGranularity)
Initializer for a CreateTableNode for a base table
|
void |
init(java.lang.Object newObjectName,
java.lang.Object tableElementList,
java.lang.Object properties,
java.lang.Object onCommitDeleteRows,
java.lang.Object onRollbackDeleteRows)
Initializer for a CreateTableNode for a global temporary table
|
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() |
private java.lang.Object |
tempTableSchemaNameCheck(java.lang.Object objectName)
If no schema name specified for global temporary table, SESSION is the implicit schema.
|
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, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExistprivate char lockGranularity
private boolean onCommitDeleteRows
private boolean onRollbackDeleteRows
private java.util.Properties properties
private TableElementList tableElementList
protected int tableType
private ResultColumnList resultColumns
private ResultSetNode queryExpression
public void init(java.lang.Object newObjectName,
java.lang.Object tableElementList,
java.lang.Object properties,
java.lang.Object lockGranularity)
throws StandardException
init in interface Nodeinit in class QueryTreeNodenewObjectName - The name of the new object being created (ie base table)tableElementList - The elements of the table: columns,
constraints, etc.properties - The optional list of properties associated with
the table.lockGranularity - The lock granularity.StandardException - Thrown on errorpublic void init(java.lang.Object newObjectName,
java.lang.Object tableElementList,
java.lang.Object properties,
java.lang.Object onCommitDeleteRows,
java.lang.Object onRollbackDeleteRows)
throws StandardException
init in interface Nodeinit in class QueryTreeNodenewObjectName - The name of the new object being declared (ie temporary table)tableElementList - The elements of the table: columns,
constraints, etc.properties - The optional list of properties associated with
the table.onCommitDeleteRows - If true, on commit delete rows else on commit preserve rows of temporary table.onRollbackDeleteRows - If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported valueStandardException - Thrown on errorpublic void init(java.lang.Object newObjectName,
java.lang.Object resultColumns,
java.lang.Object queryExpression)
throws StandardException
init in interface Nodeinit in class QueryTreeNodenewObjectName - The name of the new object being created
(ie base table).resultColumns - The optional column list.queryExpression - The query expression for the table.StandardException - Thrown on errorprivate java.lang.Object tempTableSchemaNameCheck(java.lang.Object objectName)
throws StandardException
objectName - The name of the new object being declared (ie temporary table)StandardExceptionpublic java.lang.String toString()
toString in class DDLStatementNodepublic void printSubNodes(int depth)
printSubNodes in class QueryTreeNodedepth - The depth to indent the sub-nodespublic java.lang.String statementToString()
statementToString in class StatementNodepublic void bindStatement()
throws StandardException
bindStatement in class StatementNodeStandardException - Thrown on errorpublic boolean referencesSessionSchema()
throws StandardException
referencesSessionSchema in class QueryTreeNodeStandardException - Thrown on errorpublic ConstantAction makeConstantAction() throws StandardException
makeConstantAction in class QueryTreeNodeStandardException - Thrown on failurevoid acceptChildren(Visitor v) throws StandardException
acceptChildren in class QueryTreeNodev - the visitorStandardException - on errorApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.