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.
|
String |
getFullName()
Return the full dot expression name of the
object being dropped.
|
TableName |
getObjectName() |
String |
getRelativeName()
Return the name of the table being dropped.
|
void |
init(Object objectName)
Initialize a query tree node.
|
protected void |
initAndCheck(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
|
String |
toString()
Convert this object to a String.
|
statementToStringaccept, 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, treePrintpublic 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(Object objectName) throws StandardException
QueryTreeNodeinit in class QueryTreeNodeStandardException - Thrown on errorprotected void initAndCheck(Object objectName) throws StandardException
StandardExceptionpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom in class QueryTreeNodeStandardExceptionpublic boolean isAtomic()
public String getRelativeName()
public String getFullName()
public final TableName getObjectName()
public String toString()
toString in class StatementNodeCopyright © 2015 FoundationDB, LLC. All rights reserved.