Interface TenantDAO

    • Method Detail

      • 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()
        Retrieves all the tenant names
        Returns:
        the collection of all the tenant names
      • count

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