public class CreateSequenceNode extends DDLStatementNode
Note that this node represents *only* what was in the statement and
all unspecified properties will be null. A standard conforming
implementation would use minValue, 1 and false
for missing startValue, incrementBy and isCycle,
respectively.
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 |
|---|
CreateSequenceNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
DataTypeDescriptor |
getDataType() |
Long |
getIncrementBy() |
Long |
getMaxValue() |
Long |
getMinValue() |
TableName |
getSequenceName() |
Long |
getStartWith() |
StorageFormatNode |
getStorageFormat() |
void |
init(Object sequenceName,
Object dataType,
Object startWith,
Object incrementBy,
Object maxValue,
Object minValue,
Object isCycle,
Object storageFormat)
Initializer for a CreateSequenceNode
|
Boolean |
isCycle() |
void |
printSubNodes(int depth)
Print the sub-nodes of this node.
|
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, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrintpublic void init(Object sequenceName, Object dataType, Object startWith, Object incrementBy, Object maxValue, Object minValue, Object isCycle, Object storageFormat) throws StandardException
init in class QueryTreeNodesequenceName - The name of the new sequencedataType - Exact numeric type of the new sequencestartWith - Starting valueincrementBy - Increment amountmaxValue - Largest value returned by the sequence generatorminValue - Smallest value returned by the sequence generatorisCycle - True if the generator should wrap around, false otherwiseStandardException - on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom in class DDLStatementNodeStandardExceptionpublic String toString()
toString in class DDLStatementNodepublic void printSubNodes(int depth)
QueryTreeNodeprintSubNodes in class QueryTreeNodedepth - The depth to indent the sub-nodespublic String statementToString()
statementToString in class StatementNodepublic final TableName getSequenceName()
public final DataTypeDescriptor getDataType()
public final Long getStartWith()
public final Long getMaxValue()
public final Long getMinValue()
public final Long getIncrementBy()
public final Boolean isCycle()
public StorageFormatNode getStorageFormat()
Copyright © 2015 FoundationDB, LLC. All rights reserved.