Class UpdateSchemaVersion
- java.lang.Object
-
- com.ibm.fhir.database.utils.schema.UpdateSchemaVersion
-
- All Implemented Interfaces:
IDatabaseStatement
- Direct Known Subclasses:
UpdateSchemaVersionPostgresql
public class UpdateSchemaVersion extends java.lang.Object implements IDatabaseStatement
Update the schema version recorded in the WHOLE_SCHEMA_VERSION table
-
-
Constructor Summary
Constructors Constructor Description UpdateSchemaVersion(java.lang.String schemaName, int version)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getInsertSQL(java.lang.String schemaName)
Get the statement string for inserting a record into WHOLE_SCHEMA_VERSIONvoid
run(IDatabaseTranslator translator, java.sql.Connection c)
Execute the statement using the connection.
-
-
-
Method Detail
-
getInsertSQL
protected java.lang.String getInsertSQL(java.lang.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, java.sql.Connection c)
Description copied from interface:IDatabaseStatement
Execute the statement using the connection.- Specified by:
run
in interfaceIDatabaseStatement
- Parameters:
translator
- to translate any exceptions
-
-