Interface NamedQueryService
-
- All Known Implementing Classes:
FlexibleSearchNamedQueryService
public interface NamedQueryServiceNamedQuery Service interface for search operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> SearchResult<T>getSearchResult(NamedQuery namedQuery)Performs a search based on the given namedQuery attribute<T> java.util.List<T>search(NamedQuery namedQuery)Performs a search based on the given namedQuery attribute
-
-
-
Method Detail
-
search
<T> java.util.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
-
-