Package com.ibm.fhir.schema.control
Class SetTenantIdDb2
- java.lang.Object
-
- com.ibm.fhir.schema.control.SetTenantIdDb2
-
- All Implemented Interfaces:
IDatabaseStatement
public class SetTenantIdDb2 extends java.lang.Object implements IDatabaseStatement
Sets the FHIR_ADMIN.SV_TENANT_ID variable which is used for row-based permissions in the Db2 multi-tenant schema. Because we are running as admin, we can set this variable directly and do not need to use the stored procedure (which would required the tenant key).
-
-
Constructor Summary
Constructors Constructor Description SetTenantIdDb2(java.lang.String adminSchemaName, int tenantId)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(IDatabaseTranslator translator, java.sql.Connection c)
Execute the statement using the connection.
-
-
-
Method Detail
-
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
-
-