|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.StatementNode
com.akiban.sql.parser.DDLStatementNode
public abstract class DDLStatementNode
A DDLStatementNode represents any type of DDL statement: CREATE TABLE, CREATE INDEX, ALTER TABLE, etc.
| Field Summary | |
|---|---|
static int |
ADD_TYPE
|
static int |
DROP_TYPE
|
static int |
LOCKING_TYPE
|
static int |
MODIFY_TYPE
|
static int |
UNKNOWN_TYPE
|
| Fields inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX |
| Constructor Summary | |
|---|---|
DDLStatementNode()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.akiban.sql.parser.StatementNode |
|---|
statementToString |
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public DDLStatementNode()
| Method Detail |
|---|
public void init(Object objectName)
throws StandardException
QueryTreeNode
init in class QueryTreeNodeStandardException - Thrown on error
protected void initAndCheck(Object objectName)
throws StandardException
StandardException
public 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 StatementNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||