Class MaxTenantIdDAO
- java.lang.Object
-
- com.ibm.fhir.database.utils.tenant.MaxTenantIdDAO
-
- All Implemented Interfaces:
IDatabaseSupplier<Integer>
public class MaxTenantIdDAO extends Object implements IDatabaseSupplier<Integer>
DAO to create a free tenant slot (to align with a new partition)
-
-
Constructor Summary
Constructors Constructor Description MaxTenantIdDAO(String schemaName)
Get partition information for all tables in the tableSchema, using the catalogSchema as the schema containing the DATAPARTITIONS system table
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
run(IDatabaseTranslator translator, Connection c)
Execute the encapsulated query against the database and stream the result data to the configured target
-
-
-
Constructor Detail
-
MaxTenantIdDAO
public MaxTenantIdDAO(String schemaName)
Get partition information for all tables in the tableSchema, using the catalogSchema as the schema containing the DATAPARTITIONS system table- Parameters:
schemaName
-
-
-
Method Detail
-
run
public Integer run(IDatabaseTranslator translator, Connection c)
Execute the encapsulated query against the database and stream the result data to the configured target- Specified by:
run
in interfaceIDatabaseSupplier<Integer>
- Parameters:
c
-translator
- to translate any exceptions
-
-