public class CreateSequenceNode extends DDLStatementNode
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
_cycle |
private DataTypeDescriptor |
_dataType |
private java.lang.Long |
_initialValue |
private java.lang.Long |
_maxValue |
private java.lang.Long |
_minValue |
private TableName |
_sequenceName |
private java.lang.Long |
_stepValue |
static int |
SEQUENCE_ELEMENT_COUNT |
ADD_TYPE, DROP_STATISTICS, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE, UPDATE_STATISTICS
EMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
Constructor and Description |
---|
CreateSequenceNode() |
Modifier and Type | Method and Description |
---|---|
void |
bindStatement()
Bind this CreateSequenceNode.
|
void |
init(java.lang.Object sequenceName,
java.lang.Object dataType,
java.lang.Object initialValue,
java.lang.Object stepValue,
java.lang.Object maxValue,
java.lang.Object minValue,
java.lang.Object cycle)
Initializer for a CreateSequenceNode
|
ConstantAction |
makeConstantAction()
Create the Constant information that will drive the guts of Execution.
|
java.lang.String |
statementToString() |
java.lang.String |
toString()
Convert this object to a String.
|
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic, makeFromList
executeSchemaName, executeStatementName, generate, getSPSName, lockTableForCompilation, makeResultDescription, needsSavepoint, optimizeStatement, updateIndexStatisticsFor
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist
private TableName _sequenceName
private DataTypeDescriptor _dataType
private java.lang.Long _initialValue
private java.lang.Long _stepValue
private java.lang.Long _maxValue
private java.lang.Long _minValue
private java.lang.Boolean _cycle
public static final int SEQUENCE_ELEMENT_COUNT
public void init(java.lang.Object sequenceName, java.lang.Object dataType, java.lang.Object initialValue, java.lang.Object stepValue, java.lang.Object maxValue, java.lang.Object minValue, java.lang.Object cycle) throws StandardException
init
in interface Node
init
in class QueryTreeNode
sequenceName
- The name of the new sequencedataType
- Exact numeric type of the new sequenceinitialValue
- Starting valuestepValue
- Increment amountmaxValue
- Largest value returned by the sequence generatorminValue
- Smallest value returned by the sequence generatorcycle
- True if the generator should wrap around, false otherwiseStandardException
- on errorpublic java.lang.String toString()
toString
in class DDLStatementNode
public void bindStatement() throws StandardException
bindStatement
in class StatementNode
StandardException
- Thrown on errorpublic java.lang.String statementToString()
statementToString
in class StatementNode
public ConstantAction makeConstantAction()
makeConstantAction
in class QueryTreeNode
StandardException
- Thrown on failureApache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.