Package de.hybris.platform.genericsearch
Class GenericSearchQuery
java.lang.Object
de.hybris.platform.servicelayer.search.AbstractQuery
de.hybris.platform.genericsearch.GenericSearchQuery
The GenericSearchQuery stores all needed informations (the query itself, parameters, ...) to execute a search in the
GenericSearchService.
Please note that this class is not thread-safe and not intended to be living longer than one request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()ReturnsGenericQueryobject related with currentGenericSearchQueryobject.intDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.getStart()instead.booleanDeprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.isNeedTotal()instead (remember that this method works opposite).voidsetDontNeedTotal(boolean dontNeedTotal) Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.setNeedTotal(boolean)instead (remember that this method works opposite).voidsetRangeCount(int rangeCount) Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.setCount(int)instead.voidsetRangeStart(int rangeStart) Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.setStart(int)instead.Methods inherited from class de.hybris.platform.servicelayer.search.AbstractQuery
getCatalogVersions, getCount, getLanguage, getLocale, getResultClassList, getSessionSearchRestrictions, getStart, getUser, isDisableCaching, isDisableSearchRestrictions, isDisableSpecificDbLimitSupport, isFailOnUnknownFields, isNeedTotal, isTypeExclusive, setCatalogVersions, setCatalogVersions, setCount, setDisableCaching, setDisableSearchRestrictions, setDisableSpecificDbLimitSupport, setFailOnUnknownFields, setLanguage, setLocale, setNeedTotal, setResultClassList, setSessionSearchRestrictions, setSessionSearchRestrictions, setStart, setTypeExclusive, setUser
-
Constructor Details
-
GenericSearchQuery
-
-
Method Details
-
getQuery
ReturnsGenericQueryobject related with currentGenericSearchQueryobject. -
getRangeCount
Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.getCount()instead.- Returns:
- the number of elements in this search range. Default value is -1 which means all elements.
-
getRangeStart
Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.getStart()instead.Default value for the start range is 0 (first element).- Returns:
- the start number of the search range.
-
isDontNeedTotal
Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.isNeedTotal()instead (remember that this method works opposite).- Returns:
falseif the search returns all found result objects at once.
-
setDontNeedTotal
Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.setNeedTotal(boolean)instead (remember that this method works opposite).Set this dontNeedTotal tofalseif the search should return all result objects at once. The default value istrue.- Parameters:
dontNeedTotal- For larger results set this value totrue(default) for optimized query processing.
-
setRangeCount
Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.setCount(int)instead.Set the number of elements in the search range. Attention with the default valueisDontNeedTotal()=true! The total count of the result will be equal to this value. The default value is -1 which means all elements.- Parameters:
rangeCount- Sets the number of elements for the search range.
-
setRangeStart
Deprecated, for removal: This API element is subject to removal in a future version.since ages - useAbstractQuery.setStart(int)instead.Sets the start number of the search range.
-
AbstractQuery.getCount()instead.