Package com.logicaldoc.core.security
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, 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
- Throws:
PersistenceException
- Error in the database
-
getTenantName
Retrieves the tenant's name- Parameters:
tenantId
- identifier of the tenant- Returns:
- name of the tenant
- Throws:
PersistenceException
- Error in the database
-
findAllNames
Retrieves all the tenant names- Returns:
- the collection of all the tenant names
- Throws:
PersistenceException
- Error in the database
-
count
Counts the total number of tenants- Returns:
- number of tenants
- Throws:
PersistenceException
- Error in the database
-