Package com.ibm.fhir.schema.control
Class UnusedTableRemovalNeedsV0021Migration
- java.lang.Object
-
- com.ibm.fhir.schema.control.UnusedTableRemovalNeedsV0021Migration
-
- All Implemented Interfaces:
IDatabaseSupplier<Boolean>
public class UnusedTableRemovalNeedsV0021Migration extends Object implements IDatabaseSupplier<Boolean>
Checks to see if any of the tables exist in the target database.
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>
DEPRECATED_TABLES
static int
TABLE_COUNT
-
Constructor Summary
Constructors Constructor Description UnusedTableRemovalNeedsV0021Migration(String schemaName)
Public Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkDb2(IDatabaseTranslator translator, Connection c)
Checks the db2 syscatalog for the tables.boolean
checkDerby(IDatabaseTranslator translator, Connection c)
Checks db2's sys catalogboolean
checkPostgres(IDatabaseTranslator translator, Connection c)
Checks postgresql for the tables in the schemaBoolean
run(IDatabaseTranslator translator, Connection c)
Execute the statement using the connection and return the value
-
-
-
Constructor Detail
-
UnusedTableRemovalNeedsV0021Migration
public UnusedTableRemovalNeedsV0021Migration(String schemaName)
Public Constructor- Parameters:
schemaName
-
-
-
Method Detail
-
run
public Boolean run(IDatabaseTranslator translator, Connection c)
Description copied from interface:IDatabaseSupplier
Execute the statement using the connection and return the value- Specified by:
run
in interfaceIDatabaseSupplier<Boolean>
- Parameters:
translator
- to translate any exceptions
-
checkDb2
public boolean checkDb2(IDatabaseTranslator translator, Connection c)
Checks the db2 syscatalog for the tables.- Parameters:
translator
-c
-- Returns:
-
checkDerby
public boolean checkDerby(IDatabaseTranslator translator, Connection c)
Checks db2's sys catalog- Parameters:
translator
-c
-- Returns:
-
checkPostgres
public boolean checkPostgres(IDatabaseTranslator translator, Connection c)
Checks postgresql for the tables in the schema- Parameters:
translator
-c
-- Returns:
-
-