public class Query
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
Query(java.util.Collection<SearchType> types,
java.lang.String simpleText,
int start,
int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameterOrValues(java.util.List<SearchParameterValue> orValues) |
void |
addParameterValue(SearchParameterValue value) |
void |
addSelectedFacetValue(FacetValue value) |
void |
addSortCriterion(PropertyDescriptor sortProperty,
boolean asc) |
void |
clearExcludedItems()
Clears the excluded items.
|
void |
clearParameterOrValues() |
void |
clearParameterValues() |
java.lang.Object |
clone() |
java.lang.Object |
getContextParameter(java.lang.String key) |
int |
getCount() |
java.util.Collection<TypedObject> |
getExcludedItems()
Returns the items which should be excluded when searching.
|
java.util.List<java.util.List<SearchParameterValue>> |
getParameterOrValues() |
java.util.List<SearchParameterValue> |
getParameterValues() |
java.util.Set<FacetValue> |
getSelectedFacetValues() |
java.util.Set<SearchType> |
getSelectedTypes() |
java.lang.String |
getSimpleText() |
java.util.Map<PropertyDescriptor,java.lang.Boolean> |
getSortCriteria() |
int |
getStart() |
boolean |
isExcludeSubTypes() |
boolean |
isNeedTotalCount() |
boolean |
isOrMode()
Tells whether all search parameters are OR-connected or AND-connected.
|
boolean |
isSimpleSearch() |
void |
removeParameterValue(SearchParameterValue value) |
void |
removeSelectedFacetValue(FacetValue value) |
void |
removeSortCriterion(PropertyDescriptor sortProperty) |
void |
setContextParameter(java.lang.String key,
java.lang.Object value) |
void |
setCount(int count) |
void |
setExcludedItems(java.util.Collection<TypedObject> excludedItems)
Sets the items to be excluded when searching.
|
void |
setExcludeSubTypes(boolean excludeSubTypes) |
void |
setNeedTotalCount(boolean needTotalCount) |
void |
setOrMode(boolean orMode)
Defines whether all search parameters should be OR-connected or AND-connected.
|
void |
setParameterOrValues(java.util.List<java.util.List<SearchParameterValue>> orValues) |
void |
setParameterValues(java.util.List<SearchParameterValue> parameterValues) |
void |
setSelectedFacetValues(java.util.Collection<FacetValue> selectedFacetValues) |
void |
setSelectedTypes(java.util.Collection<SearchType> types) |
void |
setSimpleSearch(boolean simpleSearch) |
void |
setSimpleText(java.lang.String simpleText) |
void |
setSortCriteria(java.util.Map<PropertyDescriptor,java.lang.Boolean> criteria) |
void |
setStart(int start) |
public Query(java.util.Collection<SearchType> types, java.lang.String simpleText, int start, int count)
public void setSelectedTypes(java.util.Collection<SearchType> types)
public int getStart()
public int getCount()
public java.lang.String getSimpleText()
public void setStart(int start)
start - the start to setpublic void setCount(int count)
count - the count to setpublic void setExcludedItems(java.util.Collection<TypedObject> excludedItems)
excludedItems - the items to excludegetExcludedItems(),
clearExcludedItems()public java.util.Collection<TypedObject> getExcludedItems()
setExcludedItems(Collection),
clearExcludedItems()public void clearExcludedItems()
setExcludedItems(Collection),
getExcludedItems()public void setSimpleText(java.lang.String simpleText)
public java.util.Set<FacetValue> getSelectedFacetValues()
public void setSelectedFacetValues(java.util.Collection<FacetValue> selectedFacetValues)
public void addSelectedFacetValue(FacetValue value)
public void removeSelectedFacetValue(FacetValue value)
public java.util.List<SearchParameterValue> getParameterValues()
public java.util.List<java.util.List<SearchParameterValue>> getParameterOrValues()
public void setParameterValues(java.util.List<SearchParameterValue> parameterValues)
public void addParameterValue(SearchParameterValue value)
public void addParameterOrValues(java.util.List<SearchParameterValue> orValues)
public void setParameterOrValues(java.util.List<java.util.List<SearchParameterValue>> orValues)
public void clearParameterValues()
public void clearParameterOrValues()
public void removeParameterValue(SearchParameterValue value)
public java.util.Map<PropertyDescriptor,java.lang.Boolean> getSortCriteria()
public void setSortCriteria(java.util.Map<PropertyDescriptor,java.lang.Boolean> criteria)
public void addSortCriterion(PropertyDescriptor sortProperty, boolean asc)
public void removeSortCriterion(PropertyDescriptor sortProperty)
public boolean isOrMode()
public void setOrMode(boolean orMode)
orMode - if true parameter are OR-connected, otherwise they're AND-connectedpublic java.util.Set<SearchType> getSelectedTypes()
public java.lang.Object getContextParameter(java.lang.String key)
public void setContextParameter(java.lang.String key,
java.lang.Object value)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean isExcludeSubTypes()
public void setExcludeSubTypes(boolean excludeSubTypes)
public boolean isNeedTotalCount()
public void setNeedTotalCount(boolean needTotalCount)
public void setSimpleSearch(boolean simpleSearch)
public boolean isSimpleSearch()
Copyright © 2018 SAP SE. All Rights Reserved.