Class DbSequenceInfo


  • public final class DbSequenceInfo
    extends Object
    Information on sequence taken from the database.
    • Constructor Detail

      • DbSequenceInfo

        public DbSequenceInfo()
    • Method Detail

      • getIncrementBy

        public long getIncrementBy()
        Returns 'increment by' value of the sequence.
        Returns:
      • setIncrementBy

        public void setIncrementBy​(long incrementBy)
        Sets 'increment by' value of the sequence.
        Parameters:
        incrementBy - 'increment by' value
      • getMinValue

        public long getMinValue()
        Returns minimal value of the sequence.
        Returns:
      • setMinValue

        public void setMinValue​(long minValue)
        Sets minimal value of the sequence.
        Parameters:
        minValue - minimal value
      • getMaxValue

        public long getMaxValue()
        Returns maximal value of the sequence.
        Returns:
      • setMaxValue

        public void setMaxValue​(long maxValue)
        Sets maximal value of the sequence.
        Parameters:
        maxValue - maximal value
      • isCycle

        public boolean isCycle()
        Whether the sequence is cycled, i.e. can start again from the min. value.
        Returns:
        true - cycled, otherwise - false. Default is false
      • setCycle

        public void setCycle​(boolean cycle)
        Sets if the sequence is cycled.
        Parameters:
        cycle - true - cycled, otherwise - false.