Package com.logicaldoc.core.security.dao
Interface TenantDAO
- All Superinterfaces:
PersistentObjectDAO<Tenant>
- All Known Implementing Classes:
HibernateTenantDAO
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionint
count()
Counts the total number of tenantsRetrieves all the tenant namesfindByName
(String name) Finds a tenant by namegetTenantName
(long tenantId) Retrieves the tenant's nameMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
-
Method Details
-
findByName
Finds a tenant by name- Parameters:
name
- name of wanted tenant- Returns:
- Wanted tenant or null
-
getTenantName
Retrieves the tenant's name- Parameters:
tenantId
- identifier of the tenant- Returns:
- name of the tenant
-
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
-