Class 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 Detail

      • _sequenceName

        private java.lang.String _sequenceName
      • _schemaName

        private java.lang.String _schemaName
      • _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