Class DeleteTenantDAO

  • All Implemented Interfaces:
    IDatabaseStatement

    public class DeleteTenantDAO
    extends java.lang.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​(java.lang.String schemaName, int tenantId)
      Get partition information for all tables in the tableSchema, using the catalogSchema as the schema containing the DATAPARTITIONS system table
    • Constructor Detail

      • DeleteTenantDAO

        public DeleteTenantDAO​(java.lang.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 tables
        tenantId - the id of the tenant to delete
    • Method Detail

      • deleteFromTenantKeys

        protected void deleteFromTenantKeys​(IDatabaseTranslator translator,
                                            java.sql.Connection c)
      • deleteFromTenants

        protected void deleteFromTenants​(IDatabaseTranslator translator,
                                         java.sql.Connection c)