Package de.hybris.platform.genericsearch
Class GenericSearchQuery
- java.lang.Object
-
- de.hybris.platform.servicelayer.search.AbstractQuery
-
- de.hybris.platform.genericsearch.GenericSearchQuery
-
public class GenericSearchQuery extends AbstractQuery
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 Constructor Description GenericSearchQuery(GenericQuery query)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GenericQuerygetQuery()ReturnsGenericQueryobject related with currentGenericSearchQueryobject.intgetRangeCount()Deprecated.since ages - useAbstractQuery.getCount()instead.intgetRangeStart()Deprecated.since ages - useAbstractQuery.getStart()instead.booleanisDontNeedTotal()Deprecated.since ages - useAbstractQuery.isNeedTotal()instead (remember that this method works opposite).voidsetDontNeedTotal(boolean dontNeedTotal)Deprecated.since ages - useAbstractQuery.setNeedTotal(boolean)instead (remember that this method works opposite).voidsetRangeCount(int rangeCount)Deprecated.since ages - useAbstractQuery.setCount(int)instead.voidsetRangeStart(int rangeStart)Deprecated.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, setCatalogVersions, setCatalogVersions, setCount, setDisableCaching, setDisableSearchRestrictions, setDisableSpecificDbLimitSupport, setFailOnUnknownFields, setLanguage, setLocale, setNeedTotal, setResultClassList, setSessionSearchRestrictions, setSessionSearchRestrictions, setStart, setUser
-
-
-
-
Constructor Detail
-
GenericSearchQuery
public GenericSearchQuery(GenericQuery query)
-
-
Method Detail
-
getQuery
public GenericQuery getQuery()
ReturnsGenericQueryobject related with currentGenericSearchQueryobject.
-
getRangeCount
@Deprecated public int getRangeCount()
Deprecated.since ages - useAbstractQuery.getCount()instead.- Returns:
- the number of elements in this search range. Default value is -1 which means all elements.
-
getRangeStart
@Deprecated public int getRangeStart()
Deprecated.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 public boolean isDontNeedTotal()
Deprecated.since ages - useAbstractQuery.isNeedTotal()instead (remember that this method works opposite).- Returns:
falseif the search returns all found result objects at once.
-
setDontNeedTotal
@Deprecated public void setDontNeedTotal(boolean dontNeedTotal)
Deprecated.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 public void setRangeCount(int rangeCount)
Deprecated.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 public void setRangeStart(int rangeStart)
Deprecated.since ages - useAbstractQuery.setStart(int)instead.Sets the start number of the search range.
-
-