Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SetTenantIdDb2

        public SetTenantIdDb2​(java.lang.String adminSchemaName,
                              int tenantId)
        Public constructor
        Parameters:
        schemaName -
        resourceType -
    • Method Detail