public class AlterTableNode extends DDLStatementNode
Modifier and Type | Field and Description |
---|---|
int |
behavior |
boolean |
compressTable |
boolean |
defragment |
boolean |
purge |
boolean |
sequential |
TableElementList |
tableElementList |
boolean |
truncateEndOfTable |
ADD_TYPE, DROP_TYPE, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
AlterTableNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
int |
getChangeType() |
java.lang.String |
getIndexNameForUpdateStatistics() |
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 using temporary tables
rather than inplace compress
|
void |
init(java.lang.Object objectName,
java.lang.Object updateStatisticsAll,
java.lang.Object indexName)
Initializer for a AlterTableNode for updating the statistics.
|
void |
init(java.lang.Object objectName,
java.lang.Object purge,
java.lang.Object defragment,
java.lang.Object truncateEndOfTable)
Initializer for a AlterTableNode for INPLACE COMPRESS
|
void |
init(java.lang.Object objectName,
java.lang.Object tableElementList,
java.lang.Object lockGranularity,
java.lang.Object changeType,
java.lang.Object behavior)
Initializer for a AlterTableNode
|
boolean |
isCompressTable() |
boolean |
isTruncateTable() |
boolean |
isUpdateStatistics() |
boolean |
isUpdateStatisticsAll() |
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
java.lang.String |
statementToString() |
java.lang.String |
toString()
Convert this object to a String.
|
getFullName, getObjectName, getRelativeName, initAndCheck, isAtomic
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
public TableElementList tableElementList
public boolean compressTable
public boolean sequential
public boolean purge
public boolean defragment
public boolean truncateEndOfTable
public int behavior
public void init(java.lang.Object objectName) throws StandardException
init
in class DDLStatementNode
objectName
- The name of the table being truncatedStandardException
- Thrown on errorpublic void init(java.lang.Object objectName, java.lang.Object updateStatisticsAll, java.lang.Object indexName) throws StandardException
init
in class QueryTreeNode
objectName
- The name of the table whose index(es) will have
their statistics updated.updateStatisticsAll
- If true then update the statistics of all
the indexes on the table. If false, then update
the statistics of only the index provided as
3rd parameter hereindexName
- Only used if updateStatisticsAll is set to
false.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 SEQUENTIALStandardException
- Thrown on errorpublic void init(java.lang.Object objectName, java.lang.Object purge, java.lang.Object defragment, java.lang.Object truncateEndOfTable) throws StandardException
init
in class QueryTreeNode
objectName
- The name of the table being alteredpurge
- PURGE during INPLACE COMPRESS?defragment
- DEFRAGMENT during INPLACE COMPRESS?truncateEndOfTable
- TRUNCATE END during INPLACE COMPRESS?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) 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_TYPEbehavior
- If drop column is CASCADE or RESTRICTEDStandardException
- Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class DDLStatementNode
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 boolean isUpdateStatistics()
public boolean isUpdateStatisticsAll()
public java.lang.String getIndexNameForUpdateStatistics()
public boolean isCompressTable()
public boolean isTruncateTable()
public int getChangeType()
Copyright © 2013. All Rights Reserved.