Class DeleteTenantDAO
- java.lang.Object
-
- com.ibm.fhir.database.utils.tenant.DeleteTenantDAO
-
- All Implemented Interfaces:
IDatabaseStatement
public class DeleteTenantDAO extends Object implements IDatabaseStatement
Delete the tenant meta-data after it has been dropped. Deletes data in TENANT_KEYS and TENANTS.
-
-
Constructor Summary
Constructors Constructor Description DeleteTenantDAO(String schemaName, int tenantId)
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 protected void
deleteFromTenantKeys(IDatabaseTranslator translator, Connection c)
protected void
deleteFromTenants(IDatabaseTranslator translator, Connection c)
void
run(IDatabaseTranslator translator, Connection c)
Execute the statement using the connection.
-
-
-
Constructor Detail
-
DeleteTenantDAO
public DeleteTenantDAO(String schemaName, int tenantId)
Get partition information for all tables in the tableSchema, using the catalogSchema as the schema containing the DATAPARTITIONS system table- Parameters:
schemaName
- the name of the admin schema hosting the tenants and tenant_keys tablestenantId
- the id of the tenant to delete
-
-
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
-
deleteFromTenantKeys
protected void deleteFromTenantKeys(IDatabaseTranslator translator, Connection c)
-
deleteFromTenants
protected void deleteFromTenants(IDatabaseTranslator translator, Connection c)
-
-