Class UnusedTableRemovalNeedsV0021Migration

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

    public class UnusedTableRemovalNeedsV0021Migration
    extends java.lang.Object
    implements IDatabaseSupplier<java.lang.Boolean>
    Checks to see if any of the tables exist in the target database.
    • Field Detail

      • DEPRECATED_TABLES

        public static final java.util.List<java.lang.String> DEPRECATED_TABLES
      • TABLE_COUNT

        public static final int TABLE_COUNT
    • Constructor Detail

      • UnusedTableRemovalNeedsV0021Migration

        public UnusedTableRemovalNeedsV0021Migration​(java.lang.String schemaName)
        Public Constructor
        Parameters:
        schemaName -
    • Method Detail

      • run

        public java.lang.Boolean run​(IDatabaseTranslator translator,
                                     java.sql.Connection c)
        Description copied from interface: IDatabaseSupplier
        Execute the statement using the connection and return the value
        Specified by:
        run in interface IDatabaseSupplier<java.lang.Boolean>
        Parameters:
        translator - to translate any exceptions
      • checkDerby

        public boolean checkDerby​(IDatabaseTranslator translator,
                                  java.sql.Connection c)
        Checks derby's sys catalog
        Parameters:
        translator -
        c -
        Returns:
      • checkPostgres

        public boolean checkPostgres​(IDatabaseTranslator translator,
                                     java.sql.Connection c)
        Checks postgresql for the tables in the schema
        Parameters:
        translator -
        c -
        Returns: