Class ReferencesSequenceDAO


  • public class ReferencesSequenceDAO
    extends java.lang.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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long nextValue()
      Get the next value from the REFERENCES_SEQUENCE
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReferencesSequenceDAO

        public ReferencesSequenceDAO​(java.sql.Connection c,
                                     java.lang.String schemaName,
                                     IDatabaseTranslator tx)
    • Method Detail

      • nextValue

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