Class GetSequenceNextValueDAO

  • All Implemented Interfaces:
    IDatabaseSupplier<java.lang.Long>

    public class GetSequenceNextValueDAO
    extends java.lang.Object
    implements IDatabaseSupplier<java.lang.Long>
    DAO to create a free tenant slot (to align with a new partition)
    • Constructor Summary

      Constructors 
      Constructor Description
      GetSequenceNextValueDAO​(java.lang.String schemaName, java.lang.String sequenceName)
      DAO to get the next value from the named sequence
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long run​(IDatabaseTranslator translator, java.sql.Connection c)
      Execute the encapsulated query against the database and stream the result data to the configured target
      • Methods inherited from class java.lang.Object

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

      • GetSequenceNextValueDAO

        public GetSequenceNextValueDAO​(java.lang.String schemaName,
                                       java.lang.String sequenceName)
        DAO to get the next value from the named sequence
        Parameters:
        schemaName -
        sequenceName -
    • Method Detail

      • run

        public java.lang.Long run​(IDatabaseTranslator translator,
                                  java.sql.Connection c)
        Execute the encapsulated query against the database and stream the result data to the configured target
        Specified by:
        run in interface IDatabaseSupplier<java.lang.Long>
        Parameters:
        c -
        translator - to translate any exceptions