Interface SearchDAO
- All Superinterfaces:
PersistentObjectDAO<SavedSearch>
- All Known Implementing Classes:
HibernateSearchDAO
This class is a DAO-service for persistent
SavedSearch
objects.- Since:
- 8.6.1
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionfindByUserId
(long userId) Gets all the searches of a given user ordered by name ascfindByUserIdAndName
(long userId, String name) Gets the search using the alternate keyMethods 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
-
findByUserIdAndName
Gets the search using the alternate key- Parameters:
userId
- Identifier of the username
- The name of the search- Returns:
- the found search gridRecord, if any
- Throws:
PersistenceException
- Error in the database
-
findByUserId
Gets all the searches of a given user ordered by name asc- Parameters:
userId
- Identifier of the user- Returns:
- orderer list of searches
- Throws:
PersistenceException
- Error in the database
-