org.apache.derby.impl.sql.compile
Class CreateSequenceNode
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.StatementNode
org.apache.derby.impl.sql.compile.DDLStatementNode
org.apache.derby.impl.sql.compile.CreateSequenceNode
- All Implemented Interfaces:
- Visitable
public class CreateSequenceNode
- extends DDLStatementNode
A CreateSequenceNode is the root of a QueryTree that
represents a CREATE SEQUENCE statement.
Method Summary |
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. |
Methods inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic, makeFromList |
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, 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, getRowEstimate, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_sequenceName
private TableName _sequenceName
_dataType
private DataTypeDescriptor _dataType
_initialValue
private java.lang.Long _initialValue
_stepValue
private java.lang.Long _stepValue
_maxValue
private java.lang.Long _maxValue
_minValue
private java.lang.Long _minValue
_cycle
private java.lang.Boolean _cycle
SEQUENCE_ELEMENT_COUNT
public static final int SEQUENCE_ELEMENT_COUNT
- See Also:
- Constant Field Values
CreateSequenceNode
public CreateSequenceNode()
init
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
- Initializer for a CreateSequenceNode
- Overrides:
init
in class QueryTreeNode
- Parameters:
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 otherwise
- Throws:
StandardException
- on error
toString
public java.lang.String toString()
- Convert this object to a String. See comments in QueryTreeNode.java
for how this should be done for tree printing.
- Overrides:
toString
in class DDLStatementNode
- Returns:
- This object as a String
bindStatement
public void bindStatement()
throws StandardException
- Bind this CreateSequenceNode.
The main objectives of this method are to resolve the schema name, determine privilege checks,
and vet the variables in the CREATE SEQUENCE statement.
- Overrides:
bindStatement
in class StatementNode
- Throws:
StandardException
- Thrown on error
statementToString
public java.lang.String statementToString()
- Specified by:
statementToString
in class StatementNode
makeConstantAction
public ConstantAction makeConstantAction()
- Create the Constant information that will drive the guts of Execution.
- Overrides:
makeConstantAction
in class QueryTreeNode
- Throws:
StandardException
- Thrown on failure
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.