Visitableclass CreateTableNode extends DDLStatementNode
| Modifier and Type | Field | 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_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 |
|---|---|
CreateTableNode(TableName tableName,
ResultColumnList resultColumns,
ResultSetNode queryExpression,
ContextManager cm) |
Constructor for a CreateTableNode for a base table create from a query
|
CreateTableNode(TableName tableName,
TableElementList tableElementList,
java.util.Properties properties,
boolean onCommitDeleteRows,
boolean onRollbackDeleteRows,
ContextManager cm) |
Constructor for a CreateTableNode for a global temporary table
|
CreateTableNode(TableName tableName,
TableElementList tableElementList,
java.util.Properties properties,
char lockGranularity,
ContextManager cm) |
Constructor for a CreateTableNode for a base table
|
| 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 CreateTableNode.
|
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() |
|
private static TableName |
tempTableSchemaNameCheck(TableName tableName) |
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, 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 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
CreateTableNode(TableName tableName, TableElementList tableElementList, java.util.Properties properties, char lockGranularity, ContextManager cm) throws StandardException
tableName - 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.cm - The context managerStandardException - Thrown on errorCreateTableNode(TableName tableName, TableElementList tableElementList, java.util.Properties properties, boolean onCommitDeleteRows, boolean onRollbackDeleteRows, ContextManager cm) throws StandardException
tableName - 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 errorCreateTableNode(TableName tableName, ResultColumnList resultColumns, ResultSetNode queryExpression, ContextManager cm) throws StandardException
tableName - The name of the new object being created
(ie base table).resultColumns - The optional column list.queryExpression - The query expression for the table.cm - The context managerStandardExceptionprivate static TableName tempTableSchemaNameCheck(TableName tableName) throws StandardException
tableName - The name of the new object being declared (ie
temporary table)StandardExceptionpublic java.lang.String toString()
toString in class DDLStatementNodevoid printSubNodes(int depth)
printSubNodes in class QueryTreeNodedepth - The depth to indent the sub-nodesjava.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 DDLStatementNodev - the visitorStandardException - on errorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.