|
|||||||||
| 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.CreateTableNode
public class CreateTableNode
A CreateTableNode is the root of a QueryTree that represents a CREATE TABLE or DECLARE GLOBAL TEMPORARY TABLE statement.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
|---|
ADD_TYPE, DROP_STATISTICS, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE, UPDATE_STATISTICS |
| Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode |
|---|
EMPTY_TD_LIST, 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_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired |
| Constructor Summary | |
|---|---|
CreateTableNode()
|
|
| Method Summary | |
|---|---|
(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. |
| Methods inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
|---|
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic, makeFromList |
| Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode |
|---|
executeSchemaName, executeStatementName, generate, getSPSName, lockTableForCompilation, makeResultDescription, needsSavepoint, optimizeStatement, updateIndexStatisticsFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public CreateTableNode()
| Method Detail |
|---|
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 error
public 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 value
StandardException - Thrown on error
public 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 error
private 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 StatementNode
public void bindStatement()
throws StandardException
bindStatement in class StatementNodeStandardException - Thrown on error
public boolean referencesSessionSchema()
throws StandardException
referencesSessionSchema in class QueryTreeNodeStandardException - Thrown on error
public ConstantAction makeConstantAction()
throws StandardException
makeConstantAction in class QueryTreeNodeStandardException - Thrown on failure
void acceptChildren(Visitor v)
throws StandardException
acceptChildren in class QueryTreeNodev - the visitor
StandardException - on error
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||