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 and Description |
|---|
GenericSearchQuery(GenericQuery query) |
| Modifier and Type | Method and Description |
|---|---|
GenericQuery |
getQuery()
Returns
GenericQuery object related with current GenericSearchQuery object. |
int |
getRangeCount()
Deprecated.
since ages - use
AbstractQuery.getCount() instead. |
int |
getRangeStart()
Deprecated.
since ages - use
AbstractQuery.getStart() instead. |
boolean |
isDontNeedTotal()
Deprecated.
since ages - use
AbstractQuery.isNeedTotal() instead (remember that this method works opposite). |
void |
setDontNeedTotal(boolean dontNeedTotal)
Deprecated.
since ages - use
AbstractQuery.setNeedTotal(boolean) instead (remember that this method works opposite). |
void |
setRangeCount(int rangeCount)
Deprecated.
since ages - use
AbstractQuery.setCount(int) instead. |
void |
setRangeStart(int rangeStart)
Deprecated.
since ages - use
AbstractQuery.setStart(int) instead. |
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, setUserpublic GenericSearchQuery(GenericQuery query)
public GenericQuery getQuery()
GenericQuery object related with current GenericSearchQuery object.@Deprecated public int getRangeCount()
AbstractQuery.getCount() instead.@Deprecated public int getRangeStart()
AbstractQuery.getStart() instead.@Deprecated public boolean isDontNeedTotal()
AbstractQuery.isNeedTotal() instead (remember that this method works opposite).false if the search returns all found result objects at once.@Deprecated public void setDontNeedTotal(boolean dontNeedTotal)
AbstractQuery.setNeedTotal(boolean) instead (remember that this method works opposite).false if the search should return all result objects at once. The default
value is true.dontNeedTotal - For larger results set this value to true (default) for optimized query processing.@Deprecated public void setRangeCount(int rangeCount)
AbstractQuery.setCount(int) instead.isDontNeedTotal()=
true! The total count of the result will be equal to this value. The default value is -1 which means
all elements.rangeCount - Sets the number of elements for the search range.@Deprecated public void setRangeStart(int rangeStart)
AbstractQuery.setStart(int) instead.Copyright © 2018 SAP SE. All Rights Reserved.