Class ReferencesSequenceDAO


  • public class ReferencesSequenceDAO
    extends Object
    Handles the acquisition of sequence values from REFERENCES_SEQUENCE. For optimization, the sequence increments by a larger value, allowing us to allocate numbers without having to ask the database each time. This helps, because we assume each persistence operation will need to use a handful of values, and anything we can do to avoid database round-trips is a good thing
    • Method Detail

      • nextValue

        public long nextValue()
        Get the next value from the REFERENCES_SEQUENCE
        Returns: