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_STATISTICS
EMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION
AUTOINCREMENT_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, makeFromList
executeSchemaName, executeStatementName, generate, getSPSName, lockTableForCompilation, makeResultDescription, needsSavepoint, optimizeStatement, updateIndexStatisticsFor
accept, 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, 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
public void init(java.lang.Object newObjectName, java.lang.Object tableElementList, java.lang.Object properties, java.lang.Object lockGranularity) throws StandardException
init
in interface Node
init
in class QueryTreeNode
newObjectName
- 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 Node
init
in class QueryTreeNode
newObjectName
- 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 Node
init
in class QueryTreeNode
newObjectName
- 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)StandardException
public java.lang.String toString()
toString
in class DDLStatementNode
public void printSubNodes(int depth)
printSubNodes
in class QueryTreeNode
depth
- The depth to indent the sub-nodespublic java.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 QueryTreeNode
v
- the visitorStandardException
- on errorApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.