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 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(String adminSchemaName, int tenantId)
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.
-
-
-
Constructor Detail
-
SetTenantIdDb2
public SetTenantIdDb2(String adminSchemaName, int tenantId)
Public constructor- Parameters:
schemaName
-resourceType
-
-
-
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
-
-