com.akiban.sql.parser
Class CreateSequenceNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.StatementNode
          extended by com.akiban.sql.parser.DDLStatementNode
              extended by com.akiban.sql.parser.CreateSequenceNode
All Implemented Interfaces:
Visitable

public class CreateSequenceNode
extends DDLStatementNode

A CreateSequenceNode is the root of a QueryTree that represents a CREATE SEQUENCE statement.


Field Summary
 
Fields inherited from class com.akiban.sql.parser.DDLStatementNode
ADD_TYPE, DROP_TYPE, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
CreateSequenceNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 long getInitialValue()
           
 long getMaxValue()
           
 long getMinValue()
           
 long getStepValue()
           
 void init(Object sequenceName, Object dataType, Object initialValue, Object stepValue, Object maxValue, Object minValue, Object cycle)
          Initializer for a CreateSequenceNode
 boolean isCycle()
           
 String statementToString()
           
 String toString()
          Convert this object to a String.
 
Methods inherited from class com.akiban.sql.parser.DDLStatementNode
getFullName, getObjectName, getRelativeName, init, initAndCheck, isAtomic
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNode
accept, 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, printSubNodes, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateSequenceNode

public CreateSequenceNode()
Method Detail

init

public void init(Object sequenceName,
                 Object dataType,
                 Object initialValue,
                 Object stepValue,
                 Object maxValue,
                 Object minValue,
                 Object cycle)
          throws StandardException
Initializer for a CreateSequenceNode

Overrides:
init in class QueryTreeNode
Parameters:
sequenceName - The name of the new sequence
dataType - Exact numeric type of the new sequence
initialValue - Starting value
stepValue - Increment amount
maxValue - Largest value returned by the sequence generator
minValue - Smallest value returned by the sequence generator
cycle - True if the generator should wrap around, false otherwise
Throws:
StandardException - on error

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class DDLStatementNode
Throws:
StandardException

toString

public 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

statementToString

public String statementToString()
Specified by:
statementToString in class StatementNode

getInitialValue

public final long getInitialValue()

getStepValue

public final long getStepValue()

getMaxValue

public final long getMaxValue()

getMinValue

public final long getMinValue()

isCycle

public final boolean isCycle()


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.