Package com.ibm.fhir.schema.control
Class BackfillResourceChangeLogDb2
- java.lang.Object
-
- com.ibm.fhir.schema.control.BackfillResourceChangeLogDb2
-
- All Implemented Interfaces:
IDatabaseStatement
public class BackfillResourceChangeLogDb2 extends Object implements IDatabaseStatement
Backfill the RESOURCE_CHANGE_LOG table using all the existing _RESOURCE records for the given resourceType. For multi-tenant schemas, the table definition looks like this: Data type Column Column name schema Data type name Length Scale Nulls ------------------------------- --------- ------------------- ---------- ----- ------ MT_ID SYSIBM INTEGER 4 0 No RESOURCE_ID SYSIBM BIGINT 8 0 No RESOURCE_TYPE_ID SYSIBM INTEGER 4 0 No LOGICAL_RESOURCE_ID SYSIBM BIGINT 8 0 No CHANGE_TSTAMP SYSIBM TIMESTAMP 10 6 No VERSION_ID SYSIBM INTEGER 4 0 No CHANGE_TYPE SYSIBM CHARACTER 1 0 No This variant is used for the Db2 multi-tenant schema and must be invoked on a per-tenant basis (the FHIR_ADMIN.SV_TENANT_ID value must be set prior to invoking run on this class)
-
-
Constructor Summary
Constructors Constructor Description BackfillResourceChangeLogDb2(String schemaName, String resourceType)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(IDatabaseTranslator translator, Connection c)
Execute the statement using the connection.
-
-
-
Method Detail
-
run
public void run(IDatabaseTranslator translator, Connection c)
Description copied from interface:IDatabaseStatement
Execute the statement using the connection.- Specified by:
run
in interfaceIDatabaseStatement
- Parameters:
translator
- to translate any exceptions
-
-