|
||||||||||
| 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 DDLStatementNodeobjectName - The name of the table being truncated
StandardException - Thrown on error
public void init(java.lang.Object objectName,
java.lang.Object sequential)
throws StandardException
init in class QueryTreeNodeobjectName - The name of the table being alteredsequential - Whether or not the COMPRESS is SEQUENTIAL
StandardException - Thrown on error
public 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 QueryTreeNodeobjectName - 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 DDLStatementNodepublic java.lang.String statementToString()
statementToString in class StatementNodepublic int getChangeType()
public QueryTreeNode bind()
throws StandardException
bind in class QueryTreeNodeStandardException - 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
public void prepConstantAction()
throws StandardException
StandardException - Thrown on failurepublic void genColumnInfo()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||