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 SummaryFields Modifier and Type Field Description static java.util.List<java.lang.String>DEPRECATED_TABLESstatic intTABLE_COUNT
 - 
Constructor SummaryConstructors Constructor Description UnusedTableRemovalNeedsV0021Migration(java.lang.String schemaName)Public Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckDerby(IDatabaseTranslator translator, java.sql.Connection c)Checks derby's sys catalogbooleancheckPostgres(IDatabaseTranslator translator, java.sql.Connection c)Checks postgresql for the tables in the schemajava.lang.Booleanrun(IDatabaseTranslator translator, java.sql.Connection c)Execute the statement using the connection and return the value
 
- 
- 
- 
Method Detail- 
runpublic java.lang.Boolean run(IDatabaseTranslator translator, java.sql.Connection c) Description copied from interface:IDatabaseSupplierExecute the statement using the connection and return the value- Specified by:
- runin interface- IDatabaseSupplier<java.lang.Boolean>
- Parameters:
- translator- to translate any exceptions
 
 - 
checkDerbypublic boolean checkDerby(IDatabaseTranslator translator, java.sql.Connection c) Checks derby's sys catalog- Parameters:
- translator-
- c-
- Returns:
 
 - 
checkPostgrespublic boolean checkPostgres(IDatabaseTranslator translator, java.sql.Connection c) Checks postgresql for the tables in the schema- Parameters:
- translator-
- c-
- Returns:
 
 
- 
 
-