Package com.logicaldoc.core.security.dao
Interface TenantDAO
-
- All Superinterfaces:
PersistentObjectDAO<Tenant>
- All Known Implementing Classes:
HibernateTenantDAO
public interface TenantDAO extends PersistentObjectDAO<Tenant>
-
-
Field Summary
-
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
count()
Counts the total number of tenantsSet<String>
findAllNames()
Retrieves all the tenant namesTenant
findByName(String name)
Finds a tenant by nameString
getTenantName(long tenantId)
Retrieves the tenant's name-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
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
-
-