public class CreateTableNode extends DDLStatementNode
Modifier and Type | Field and Description |
---|---|
static int |
BASE_TABLE_TYPE |
static char |
DEFAULT_LOCK_GRANULARITY |
static int |
GLOBAL_TEMPORARY_TABLE_TYPE |
static char |
ROW_LOCK_GRANULARITY |
static int |
SYNONYM_TYPE |
static int |
SYSTEM_TABLE_TYPE |
static char |
TABLE_LOCK_GRANULARITY |
protected int |
tableType |
static int |
VIEW_TYPE |
static int |
VTI_TYPE |
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 |
---|
CreateTableNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
ExistenceCheck |
getExistenceCheck() |
ResultSetNode |
getQueryExpression() |
TableElementList |
getTableElementList() |
void |
init(java.lang.Object newObjectName,
java.lang.Object resultColumns,
java.lang.Object queryExpression,
java.lang.Object c)
Initializer for a CreateTableNode for a base table create from a query
|
void |
init(java.lang.Object newObjectName,
java.lang.Object tableElementList,
java.lang.Object properties,
java.lang.Object lockGranularity,
java.lang.Object existenceCheck)
Initializer for a CreateTableNode for a base table
|
void |
init(java.lang.Object newObjectName,
java.lang.Object tableElementList,
java.lang.Object properties,
java.lang.Object onCommitDeleteRows,
java.lang.Object onRollbackDeleteRows,
java.lang.Object existenceCheck)
Initializer for a CreateTableNode for a global temporary table
|
boolean |
isWithData() |
void |
markWithData() |
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, init, 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, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
public static final int BASE_TABLE_TYPE
public static final int SYSTEM_TABLE_TYPE
public static final int VIEW_TYPE
public static final int GLOBAL_TEMPORARY_TABLE_TYPE
public static final int SYNONYM_TYPE
public static final int VTI_TYPE
public static final char ROW_LOCK_GRANULARITY
public static final char TABLE_LOCK_GRANULARITY
public static final char DEFAULT_LOCK_GRANULARITY
protected int tableType
public void init(java.lang.Object newObjectName, java.lang.Object tableElementList, java.lang.Object properties, java.lang.Object lockGranularity, java.lang.Object existenceCheck) throws StandardException
init
in class QueryTreeNode
newObjectName
- The name of the new object being created (ie base table)tableElementList
- The elements of the table: columns,
constraints, etc.properties
- The optional list of properties associated with
the table.lockGranularity
- The lock granularity.StandardException
- Thrown on errorpublic void init(java.lang.Object newObjectName, java.lang.Object tableElementList, java.lang.Object properties, java.lang.Object onCommitDeleteRows, java.lang.Object onRollbackDeleteRows, java.lang.Object existenceCheck) throws StandardException
init
in class QueryTreeNode
newObjectName
- The name of the new object being declared (ie temporary table)tableElementList
- The elements of the table: columns,
constraints, etc.properties
- The optional list of properties associated with
the table.onCommitDeleteRows
- If true, on commit delete rows else on commit preserve rows of temporary table.onRollbackDeleteRows
- If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported valueStandardException
- Thrown on errorpublic void init(java.lang.Object newObjectName, java.lang.Object resultColumns, java.lang.Object queryExpression, java.lang.Object c) throws StandardException
init
in class QueryTreeNode
newObjectName
- The name of the new object being created
(ie base table).resultColumns
- The optional column list.queryExpression
- The query expression for the table.StandardException
- Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class DDLStatementNode
StandardException
public java.lang.String toString()
toString
in class DDLStatementNode
public TableElementList getTableElementList()
public ResultSetNode getQueryExpression()
public boolean isWithData()
public void markWithData()
public ExistenceCheck getExistenceCheck()
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
Copyright © 2013. All Rights Reserved.