Class UnusedTableRemovalNeedsV0021Migration
- java.lang.Object
-
- org.linuxforhealth.fhir.schema.control.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 Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>
DEPRECATED_TABLES
static int
TABLE_COUNT
-
Constructor Summary
Constructors Constructor Description UnusedTableRemovalNeedsV0021Migration(java.lang.String schemaName)
Public Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkDerby(IDatabaseTranslator translator, java.sql.Connection c)
Checks derby's sys catalogboolean
checkPostgres(IDatabaseTranslator translator, java.sql.Connection c)
Checks postgresql for the tables in the schemajava.lang.Boolean
run(IDatabaseTranslator translator, java.sql.Connection c)
Execute the statement using the connection and return the value
-
-
-
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 interfaceIDatabaseSupplier<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:
-
-