Interface TenantDAO

All Superinterfaces:
PersistentObjectDAO<Tenant>
All Known Implementing Classes:
HibernateTenantDAO

public interface TenantDAO extends PersistentObjectDAO<Tenant>
  • Method Details

    • findByName

      Tenant findByName(String name)
      Finds a tenant by name
      Parameters:
      name - name of wanted tenant
      Returns:
      Wanted tenant or null
    • getTenantName

      String getTenantName(long tenantId)
      Retrieves the tenant's name
      Parameters:
      tenantId - identifier of the tenant
      Returns:
      name of the tenant
    • findAllNames

      Set<String> findAllNames() throws PersistenceException
      Retrieves all the tenant names
      Returns:
      the collection of all the tenant names
      Throws:
      PersistenceException - Error in the database
    • count

      int count()
      Counts the total number of tenants
      Returns:
      number of tenants