Class SequenceDescriptor

  • All Implemented Interfaces:
    Dependable, Dependent, Provider

    public class SequenceDescriptor
    extends PrivilegedSQLObject
    implements Provider, Dependent
    This class is used by rows in the SYS.SYSSEQUENCES system table. See the header comment of SYSSEQUENCESRowFactory for the contract of that table. In particular, if the CURRENTVALUE column is null, then the sequence has been exhausted and no more values can be generated from it.
    • Field Detail

      • sequenceUUID

        private UUID sequenceUUID
      • sequenceName

        private java.lang.String sequenceName
      • schemaId

        private UUID schemaId
      • currentValue

        private java.lang.Long currentValue
      • startValue

        private long startValue
      • minimumValue

        private long minimumValue
      • maximumValue

        private long maximumValue
      • increment

        private long increment
      • canCycle

        private boolean canCycle
    • Constructor Detail

      • SequenceDescriptor

        public SequenceDescriptor​(DataDictionary dataDictionary,
                                  SchemaDescriptor sd,
                                  UUID sequenceUUID,
                                  java.lang.String sequenceName,
                                  DataTypeDescriptor dataType,
                                  java.lang.Long currentValue,
                                  long startValue,
                                  long minimumValue,
                                  long maximumValue,
                                  long increment,
                                  boolean canCycle)
        Constructor
        Parameters:
        dataDictionary - data dictionary
        sequenceUUID - unique identification in time and space of this sequence descriptor
        sequenceName -