Package com.logicaldoc.core.generic
Interface GenericDAO
- All Superinterfaces:
PersistentObjectDAO<Generic>
- All Known Implementing Classes:
HibernateGenericDAO
Instances of this class is a DAO-service for Generic business entities.
- Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Methods 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
-
findByAlternateKey
Finds a Generic by it's alternate key- Parameters:
type
- The type(you can use like jollies and can be null)subtype
- The sub-type(you can use like jollies and can be null)tenantId
- ID of the owning tenantqualifier
- the qualifier, can be null- Returns:
- Wanted generic or null
-
findByTypeAndSubtype
Finds a Generic by it's alternate key. The search uses the like operator and each parameter can be null.- Parameters:
type
- The type(you can use like jollies and can be null)subtype
- The sub-type(you can use like jollies and can be null)tenantId
- ID of the owning tenant (optional)qualifier
- the qualifier, can be null- Returns:
- The collection of found Generics
-