Class Db2GetTenantVariable

  • All Implemented Interfaces:
    IDatabaseSupplier<java.lang.Integer>

    public class Db2GetTenantVariable
    extends java.lang.Object
    implements IDatabaseSupplier<java.lang.Integer>
    DAO to fetch the current value of FHIR_ADMIN.SV_TENANT_ID. Useful for debugging - the value isn't useful outside of the database.
    • Constructor Summary

      Constructors 
      Constructor Description
      Db2GetTenantVariable​(java.lang.String schemaName)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer run​(IDatabaseTranslator translator, java.sql.Connection c)
      Execute the statement using the connection and return the value
      • Methods inherited from class java.lang.Object

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

      • Db2GetTenantVariable

        public Db2GetTenantVariable​(java.lang.String schemaName)
        Public constructor
        Parameters:
        schemaName -
    • Method Detail

      • run

        public java.lang.Integer run​(IDatabaseTranslator translator,
                                     java.sql.Connection c)
        Description copied from interface: IDatabaseSupplier
        Execute the statement using the connection and return the value
        Specified by:
        run in interface IDatabaseSupplier<java.lang.Integer>
        Parameters:
        translator - to translate any exceptions