Package com.logicaldoc.core.security
Interface TenantDAO
- All Superinterfaces:
- PersistentObjectDAO<Tenant>
- All Known Implementing Classes:
- HibernateTenantDAO
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionintcount()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.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, store
- 
Method Details- 
findByNameFinds a tenant by name- Parameters:
- name- name of wanted tenant
- Returns:
- Wanted tenant or null
- Throws:
- PersistenceException- Error in the database
 
- 
getTenantNameRetrieves the tenant's name- Parameters:
- tenantId- identifier of the tenant
- Returns:
- name of the tenant
- Throws:
- PersistenceException- Error in the database
 
- 
findAllNamesRetrieves all the tenant names- Returns:
- the collection of all the tenant names
- Throws:
- PersistenceException- Error in the database
 
- 
countCounts the total number of tenants- Returns:
- number of tenants
- Throws:
- PersistenceException- Error in the database
 
 
-