Class SequenceManager.SequenceGenerator

  • Enclosing class:
    SequenceManager

    private static class SequenceManager.SequenceGenerator
    extends java.lang.Object
    An object that encapsulates information about the sequence key.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long cache
      How many values we cache.
      (package private) long current_val
      The current value of this sequence generator.
      (package private) boolean cycle
      True if the sequence key is cycled.
      (package private) long id
      The id value of this sequence key.
      (package private) long increment_by
      The number we increment the sequence key by.
      (package private) long last_value
      The last value of this sequence key.
      (package private) long max_value
      The maximum value of the sequence key.
      (package private) long min_value
      The minimum value of the sequence key.
      (package private) TableName name
      The name of this sequence key.
      (package private) long start
      The start value of the sequence generator.
      (package private) int type
      The type of this sequence key.
    • Constructor Summary

      Constructors 
      Constructor Description
      SequenceGenerator​(long id, TableName name)  
      SequenceGenerator​(long id, TableName name, long last_value, long increment_by, long min_value, long max_value, long start, long cache, boolean cycle)  
    • Field Detail

      • current_val

        long current_val
        The current value of this sequence generator.
      • id

        long id
        The id value of this sequence key.
      • name

        TableName name
        The name of this sequence key.
      • type

        int type
        The type of this sequence key.
      • last_value

        long last_value
        The last value of this sequence key. This value represents the value of the sequence key in the persistence medium.
      • increment_by

        long increment_by
        The number we increment the sequence key by.
      • min_value

        long min_value
        The minimum value of the sequence key.
      • max_value

        long max_value
        The maximum value of the sequence key.
      • start

        long start
        The start value of the sequence generator.
      • cache

        long cache
        How many values we cache.
      • cycle

        boolean cycle
        True if the sequence key is cycled.
    • Constructor Detail

      • SequenceGenerator

        SequenceGenerator​(long id,
                          TableName name)
      • SequenceGenerator

        SequenceGenerator​(long id,
                          TableName name,
                          long last_value,
                          long increment_by,
                          long min_value,
                          long max_value,
                          long start,
                          long cache,
                          boolean cycle)
    • Method Detail

      • incrementValue

        private long incrementValue​(long val)
      • incrementCurrentValue

        void incrementCurrentValue()
      • incrementLastValue

        void incrementLastValue()