Class FlexibleSearchNamedQueryService
java.lang.Object
de.hybris.platform.cms2.namedquery.service.impl.FlexibleSearchNamedQueryService
- All Implemented Interfaces:
NamedQueryService
NamedQueryService implemented as an adapter for Flexible Search Service. This implementation receives requests to
perform the search and uses the
FlexibleSearchService service to leverage the final search.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FlexibleSearchNamedQueryConverterprotected FlexibleSearchServiceprotected I18NServiceprotected NamedQueryConversionDtogetInternalNamedQuery(NamedQuery namedQuery, String query) Creates the internal named query object, which contains the query statementprotected NamedQueryFactory<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 attributevoidsetFlexibleSearchNamedQueryConverter(FlexibleSearchNamedQueryConverter flexibleSearchNamedQueryConverter) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetI18NService(I18NService i18NService) voidsetNamedQueryFactory(NamedQueryFactory namedQueryFactory)
-
Field Details
-
OUTER_JOIN_LP
- See Also:
-
-
Constructor Details
-
FlexibleSearchNamedQueryService
public FlexibleSearchNamedQueryService()
-
-
Method Details
-
search
Description copied from interface:NamedQueryServicePerforms a search based on the given namedQuery attribute- Specified by:
searchin interfaceNamedQueryService- Type Parameters:
T- - The type to be returned- Parameters:
namedQuery- - object holding everything related to the current query.- Returns:
- the resulting list
-
getSearchResult
public <T> SearchResult<T> getSearchResult(NamedQuery namedQuery) throws InvalidNamedQueryException, SearchExecutionNamedQueryException Description copied from interface:NamedQueryServicePerforms a search based on the given namedQuery attribute- Specified by:
getSearchResultin interfaceNamedQueryService- 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
-
getInternalNamedQuery
Creates the internal named query object, which contains the query statement- Parameters:
namedQuery- the valued object to be used in the assignmentquery- the query assigned to this namedQuery- Returns:
- an internal named query object, internal to this component.
-
setFlexibleSearchService
-
getFlexibleSearchService
-
getFlexibleSearchNamedQueryConverter
-
setFlexibleSearchNamedQueryConverter
public void setFlexibleSearchNamedQueryConverter(FlexibleSearchNamedQueryConverter flexibleSearchNamedQueryConverter) -
getNamedQueryFactory
-
setNamedQueryFactory
-
getI18NService
-
setI18NService
-