|
||||||||||
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.AlterTableNode
A AlterTableNode represents a DDL statement that alters a table. It contains the name of the object to be created.
Field Summary | |
TableDescriptor |
baseTable
|
int |
behavior
|
private int |
changeType
|
protected ColumnInfo[] |
colInfos
|
boolean |
compressTable
|
protected ConstraintConstantAction[] |
conActions
|
char |
lockGranularity
|
protected int |
numConstraints
|
protected SchemaDescriptor |
schemaDescriptor
|
boolean |
sequential
|
TableElementList |
tableElementList
|
private boolean |
truncateTable
|
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 | |
AlterTableNode()
|
Method Summary | |
QueryTreeNode |
bind()
Bind this AlterTableNode. |
void |
genColumnInfo()
Generate the ColumnInfo argument for the constant action. |
int |
getChangeType()
|
void |
init(java.lang.Object objectName)
Initializer for a TRUNCATE TABLE |
void |
init(java.lang.Object objectName,
java.lang.Object sequential)
Initializer for a AlterTableNode for COMPRESS |
void |
init(java.lang.Object objectName,
java.lang.Object tableElementList,
java.lang.Object lockGranularity,
java.lang.Object changeType,
java.lang.Object behavior,
java.lang.Object sequential)
Initializer for a AlterTableNode |
ConstantAction |
makeConstantAction()
Create the Constant information that will drive the guts of Execution. |
void |
prepConstantAction()
Generate arguments to constant action. |
boolean |
referencesSessionSchema()
Return true if the node references SESSION schema tables (temporary or permanent) |
java.lang.String |
statementToString()
|
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, getTableDescriptor, getTableDescriptor, getTableDescriptor, 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 |
public TableElementList tableElementList
public char lockGranularity
public boolean compressTable
public boolean sequential
public int behavior
public TableDescriptor baseTable
protected int numConstraints
private int changeType
private boolean truncateTable
protected SchemaDescriptor schemaDescriptor
protected ColumnInfo[] colInfos
protected ConstraintConstantAction[] conActions
Constructor Detail |
public AlterTableNode()
Method Detail |
public void init(java.lang.Object objectName) throws StandardException
init
in class DDLStatementNode
objectName
- The name of the table being truncated
StandardException
- Thrown on errorpublic void init(java.lang.Object objectName, java.lang.Object sequential) throws StandardException
init
in class QueryTreeNode
objectName
- The name of the table being alteredsequential
- Whether or not the COMPRESS is SEQUENTIAL
StandardException
- Thrown on errorpublic void init(java.lang.Object objectName, java.lang.Object tableElementList, java.lang.Object lockGranularity, java.lang.Object changeType, java.lang.Object behavior, java.lang.Object sequential) throws StandardException
init
in class QueryTreeNode
objectName
- The name of the table being alteredtableElementList
- The alter table actionlockGranularity
- The new lock granularity, if anychangeType
- ADD_TYPE or DROP_TYPE
StandardException
- Thrown on errorpublic java.lang.String toString()
toString
in class DDLStatementNode
public java.lang.String statementToString()
statementToString
in class StatementNode
public int getChangeType()
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 failurepublic void prepConstantAction() throws StandardException
StandardException
- Thrown on failurepublic void genColumnInfo()
|
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 |