Interface SearchDAO
-
- All Superinterfaces:
PersistentObjectDAO<SavedSearch>
- All Known Implementing Classes:
HibernateSearchDAO
public interface SearchDAO extends PersistentObjectDAO<SavedSearch>
This class is a DAO-service for persistentSavedSearch
objects.- Since:
- 8.6.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<SavedSearch>
findByUserId(long userId)
Gets all the searches of a given user ordered by name ascSavedSearch
findByUserIdAndName(long userId, String name)
Gets the search using the alternate key-
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, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
findByUserIdAndName
SavedSearch findByUserIdAndName(long userId, String name) throws PersistenceException
Gets the search using the alternate key- Parameters:
userId
- Identifier of the username
- The name of the search- Returns:
- the found search record, if any
- Throws:
PersistenceException
- Error in the database
-
findByUserId
List<SavedSearch> findByUserId(long userId) throws PersistenceException
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
-
-