public abstract class DDLStatementNode extends StatementNode
Modifier and Type | Field and Description |
---|---|
static int |
ADD_TYPE |
static int |
DROP_TYPE |
static int |
LOCKING_TYPE |
static int |
MODIFY_TYPE |
static int |
UNKNOWN_TYPE |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
DDLStatementNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
java.lang.String |
getFullName()
Return the full dot expression name of the
object being dropped.
|
TableName |
getObjectName() |
java.lang.String |
getRelativeName()
Return the name of the table being dropped.
|
void |
init(java.lang.Object objectName)
Initialize a query tree node.
|
protected void |
initAndCheck(java.lang.Object objectName)
Initialize the object name we will be performing the DDL
on and check that we are not in the system schema
and that DDL is allowed.
|
boolean |
isAtomic()
A DDL statement is always atomic
|
java.lang.String |
toString()
Convert this object to a String.
|
statementToString
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
public static final int UNKNOWN_TYPE
public static final int ADD_TYPE
public static final int DROP_TYPE
public static final int MODIFY_TYPE
public static final int LOCKING_TYPE
public void init(java.lang.Object objectName) throws StandardException
QueryTreeNode
init
in class QueryTreeNode
StandardException
- Thrown on errorprotected void initAndCheck(java.lang.Object objectName) throws StandardException
StandardException
public void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class QueryTreeNode
StandardException
public boolean isAtomic()
public java.lang.String getRelativeName()
public java.lang.String getFullName()
public final TableName getObjectName()
public java.lang.String toString()
toString
in class StatementNode
Copyright © 2013. All Rights Reserved.