org.apache.derby.impl.sql.execute
Class CreateSequenceConstantAction

java.lang.Object
  extended by org.apache.derby.impl.sql.execute.DDLConstantAction
      extended by org.apache.derby.impl.sql.execute.CreateSequenceConstantAction
All Implemented Interfaces:
ConstantAction

 class CreateSequenceConstantAction
extends DDLConstantAction

This class performs actions that are ALWAYS performed for a CREATE SEQUENCE statement at execution time. These SQL objects are stored in the SYS.SYSSEQUENCES table.


Field Summary
private  boolean _cycle
           
private  DataTypeDescriptor _dataType
           
private  long _initialValue
           
private  long _maxValue
           
private  long _minValue
           
private  java.lang.String _schemaName
           
private  java.lang.String _sequenceName
           
private  long _stepValue
           
 
Constructor Summary
CreateSequenceConstantAction(java.lang.String schemaName, java.lang.String sequenceName, DataTypeDescriptor dataType, long initialValue, long stepValue, long maxValue, long minValue, boolean cycle)
          Make the ConstantAction for a CREATE SEQUENCE statement.
 
Method Summary
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for CREATE SEQUENCE.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_sequenceName

private java.lang.String _sequenceName

_schemaName

private java.lang.String _schemaName

_dataType

private DataTypeDescriptor _dataType

_initialValue

private long _initialValue

_stepValue

private long _stepValue

_maxValue

private long _maxValue

_minValue

private long _minValue

_cycle

private boolean _cycle
Constructor Detail

CreateSequenceConstantAction

public CreateSequenceConstantAction(java.lang.String schemaName,
                                    java.lang.String sequenceName,
                                    DataTypeDescriptor dataType,
                                    long initialValue,
                                    long stepValue,
                                    long maxValue,
                                    long minValue,
                                    boolean cycle)
Make the ConstantAction for a CREATE SEQUENCE statement. When executed, will create a sequence by the given name.

Parameters:
sequenceName - The name of the sequence being created
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
Method Detail

executeConstantAction

public void executeConstantAction(Activation activation)
                           throws StandardException
This is the guts of the Execution-time logic for CREATE SEQUENCE.

Parameters:
activation - The execution environment for this constant action.
Throws:
StandardException - Thrown on failure
See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.