Class MaxTenantIdDAO

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

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

      Constructors 
      Constructor Description
      MaxTenantIdDAO​(java.lang.String schemaName)
      Get partition information for all tables in the tableSchema, using the catalogSchema as the schema containing the DATAPARTITIONS system table
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer 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

      • MaxTenantIdDAO

        public MaxTenantIdDAO​(java.lang.String schemaName)
        Get partition information for all tables in the tableSchema, using the catalogSchema as the schema containing the DATAPARTITIONS system table
        Parameters:
        schemaName -
    • Method Detail

      • run

        public java.lang.Integer 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.Integer>
        Parameters:
        c -
        translator - to translate any exceptions