Interface NamedQueryService
- All Known Implementing Classes:
FlexibleSearchNamedQueryService
public interface NamedQueryService
NamedQuery Service interface for search operations.
-
Method Summary
Modifier and TypeMethodDescription<T> SearchResult<T>getSearchResult(NamedQuery namedQuery) Performs a search based on the given namedQuery attribute<T> List<T>search(NamedQuery namedQuery) Performs a search based on the given namedQuery attribute
-
Method Details
-
search
<T> List<T> search(NamedQuery namedQuery) throws InvalidNamedQueryException, SearchExecutionNamedQueryException Performs a search based on the given namedQuery attribute- Type Parameters:
T- - The type to be returned- Parameters:
namedQuery- - object holding everything related to the current query.- Returns:
- the resulting list
- Throws:
InvalidNamedQueryException- when the queryName does not match any existing named queriesSearchExecutionNamedQueryException- when an error happens while executing the query on the search engine
-
getSearchResult
<T> SearchResult<T> getSearchResult(NamedQuery namedQuery) throws InvalidNamedQueryException, SearchExecutionNamedQueryException Performs a search based on the given namedQuery attribute- Type Parameters:
T- - The type to be returned- Parameters:
namedQuery- - object holding everything related to the current query.- Returns:
- the resulting
SearchResult - Throws:
InvalidNamedQueryException- when the queryName does not match any existing named queriesSearchExecutionNamedQueryException- when an error happens while executing the query on the search engine
-