|
||||||||||
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.CreateStatementNode
org.apache.derby.impl.sql.compile.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 TableElementList |
tableElementList
|
protected int |
tableType
|
Fields inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
ADD_TYPE, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE |
Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode |
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_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset |
Constructor Summary | |
CreateTableNode()
|
Method Summary | |
QueryTreeNode |
bind()
Bind this CreateTableNode. |
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. |
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.CreateStatementNode |
alterItem, isCreate |
Methods inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic |
Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode |
generate, lockTableForCompilation |
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
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 class QueryTreeNode
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 class QueryTreeNode
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 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 java.lang.String statementToString()
statementToString
in class StatementNode
public QueryTreeNode bind() throws StandardException
bind
in class QueryTreeNode
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 failure
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |