Class CreateSequenceConstantAction

java.lang.Object
org.apache.derby.impl.sql.execute.DDLConstantAction
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 Details

    • _sequenceName

      private String _sequenceName
    • _schemaName

      private 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 Details

    • CreateSequenceConstantAction

      public CreateSequenceConstantAction(String schemaName, 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 Details