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_STATISTICS
EMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and 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 and 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, makeFromList
executeSchemaName, executeStatementName, generate, getCursorInfo, getSPSName, lockTableForCompilation, makeResultDescription, needsSavepoint, optimizeStatement, updateIndexStatisticsFor
accept, 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, verifyClassExist
private 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 managerStandardException
private static TableName tempTableSchemaNameCheck(TableName tableName) throws StandardException
tableName
- The name of the new object being declared (ie
temporary table)StandardException
public java.lang.String toString()
toString
in class DDLStatementNode
void printSubNodes(int depth)
printSubNodes
in class QueryTreeNode
depth
- The depth to indent the sub-nodesjava.lang.String statementToString()
statementToString
in class StatementNode
public void bindStatement() throws StandardException
bindStatement
in class StatementNode
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 failurevoid acceptChildren(Visitor v) throws StandardException
acceptChildren
in class DDLStatementNode
v
- the visitorStandardException
- on errorApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.