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_TYPEAUTOINCREMENT_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() |
StorageFormatNode |
getStorageFormat() |
TableElementList |
getTableElementList() |
void |
init(Object newObjectName,
Object resultColumns,
Object queryExpression,
Object c)
Initializer for a CreateTableNode for a base table create from a query
|
void |
init(Object newObjectName,
Object tableElementList,
Object onCommitDeleteRows,
Object onRollbackDeleteRows,
Object existenceCheck)
Initializer for a CreateTableNode for a global temporary table
|
void |
init(Object newObjectName,
Object tableElementList,
Object properties,
Object lockGranularity,
Object existenceCheck,
Object storageFormat)
Initializer for a CreateTableNode for a base table
|
boolean |
isWithData() |
void |
markWithData() |
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
String |
statementToString() |
String |
toString()
Convert this object to a String.
|
getFullName, getObjectName, getRelativeName, init, initAndCheck, isAtomicaccept, 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, treePrintpublic 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(Object newObjectName, Object tableElementList, Object properties, Object lockGranularity, Object existenceCheck, Object storageFormat) throws StandardException
init in class QueryTreeNodenewObjectName - 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.storageFormat - The storage format to use.StandardException - Thrown on errorpublic void init(Object newObjectName, Object tableElementList, Object onCommitDeleteRows, Object onRollbackDeleteRows, Object existenceCheck) throws StandardException
init in class QueryTreeNodenewObjectName - The name of the new object being declared (ie temporary table)tableElementList - The elements of the table: columns,
constraints, etc.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(Object newObjectName, Object resultColumns, Object queryExpression, Object c) throws StandardException
init in class QueryTreeNodenewObjectName - 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 DDLStatementNodeStandardExceptionpublic String toString()
toString in class DDLStatementNodepublic TableElementList getTableElementList()
public ResultSetNode getQueryExpression()
public boolean isWithData()
public void markWithData()
public ExistenceCheck getExistenceCheck()
public StorageFormatNode getStorageFormat()
public void printSubNodes(int depth)
printSubNodes in class QueryTreeNodedepth - The depth to indent the sub-nodespublic String statementToString()
statementToString in class StatementNodeCopyright © 2014 FoundationDB, LLC. All rights reserved.