Package com.ibm.fhir.schema.control
Class UpdateSchemaVersion
- java.lang.Object
-
- com.ibm.fhir.schema.control.UpdateSchemaVersion
-
- All Implemented Interfaces:
IDatabaseStatement
- Direct Known Subclasses:
UpdateSchemaVersionPostgresql
public class UpdateSchemaVersion extends Object implements IDatabaseStatement
Update the schema version recorded in the WHOLE_SCHEMA_VERSION table
-
-
Constructor Summary
Constructors Constructor Description UpdateSchemaVersion(String schemaName, FhirSchemaVersion version)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetInsertSQL(String schemaName)Get the statement string for inserting a record into WHOLE_SCHEMA_VERSIONvoidrun(IDatabaseTranslator translator, Connection c)Execute the statement using the connection.
-
-
-
Constructor Detail
-
UpdateSchemaVersion
public UpdateSchemaVersion(String schemaName, FhirSchemaVersion version)
Public constructor- Parameters:
schemaName-version-
-
-
Method Detail
-
getInsertSQL
protected String getInsertSQL(String schemaName)
Get the statement string for inserting a record into WHOLE_SCHEMA_VERSION- Returns:
- the SQL insert statement
-
run
public void run(IDatabaseTranslator translator, Connection c)
Description copied from interface:IDatabaseStatementExecute the statement using the connection.- Specified by:
runin interfaceIDatabaseStatement- Parameters:
translator- to translate any exceptions
-
-