Package com.ibm.fhir.database.utils.db2
Class Db2GetTenantVariable
- java.lang.Object
 - 
- com.ibm.fhir.database.utils.db2.Db2GetTenantVariable
 
 
- 
- All Implemented Interfaces:
 IDatabaseSupplier<Integer>
public class Db2GetTenantVariable extends Object implements IDatabaseSupplier<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(String schemaName)Public constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerrun(IDatabaseTranslator translator, Connection c)Execute the statement using the connection and return the value 
 - 
 
- 
- 
Constructor Detail
- 
Db2GetTenantVariable
public Db2GetTenantVariable(String schemaName)
Public constructor- Parameters:
 schemaName-
 
 - 
 
- 
Method Detail
- 
run
public Integer run(IDatabaseTranslator translator, Connection c)
Description copied from interface:IDatabaseSupplierExecute the statement using the connection and return the value- Specified by:
 runin interfaceIDatabaseSupplier<Integer>- Parameters:
 translator- to translate any exceptions
 
 - 
 
 -