Package com.ibm.fhir.schema.control
Class GetXXXLogicalResourceNeedsMigration
- java.lang.Object
-
- com.ibm.fhir.schema.control.GetXXXLogicalResourceNeedsMigration
-
- All Implemented Interfaces:
IDatabaseSupplier<Boolean>
public class GetXXXLogicalResourceNeedsMigration extends Object implements IDatabaseSupplier<Boolean>
Checks the value of VERSION_ID from the first row found in xxx_LOGICAL_RESOURCES. If this value is null, it means that the table needs to be migrated. If the table is empty, then obviously there's no need for migration.
-
-
Constructor Summary
Constructors Constructor Description GetXXXLogicalResourceNeedsMigration(String schemaName, String resourceTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
run(IDatabaseTranslator translator, Connection c)
Execute the statement using the connection and return the value
-
-
-
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
-
-