Class Query

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Query
    extends java.lang.Object
    implements java.lang.Cloneable
    • Constructor Detail

      • Query

        public Query​(java.util.Collection<SearchType> types,
                     java.lang.String simpleText,
                     int start,
                     int count)
    • Method Detail

      • setSelectedTypes

        public void setSelectedTypes​(java.util.Collection<SearchType> types)
      • getStart

        public int getStart()
      • getCount

        public int getCount()
      • getSimpleText

        public java.lang.String getSimpleText()
      • setStart

        public void setStart​(int start)
        Parameters:
        start - the start to set
      • setCount

        public void setCount​(int count)
        Parameters:
        count - the count to set
      • setExcludedItems

        public void setExcludedItems​(java.util.Collection<TypedObject> excludedItems)
        Sets the items to be excluded when searching.
        Parameters:
        excludedItems - the items to exclude
        See Also:
        getExcludedItems(), clearExcludedItems()
      • setSimpleText

        public void setSimpleText​(java.lang.String simpleText)
      • getSelectedFacetValues

        public java.util.Set<FacetValue> getSelectedFacetValues()
      • setSelectedFacetValues

        public void setSelectedFacetValues​(java.util.Collection<FacetValue> selectedFacetValues)
      • addSelectedFacetValue

        public void addSelectedFacetValue​(FacetValue value)
      • removeSelectedFacetValue

        public void removeSelectedFacetValue​(FacetValue value)
      • getParameterOrValues

        public java.util.List<java.util.List<SearchParameterValue>> getParameterOrValues()
      • setParameterValues

        public void setParameterValues​(java.util.List<SearchParameterValue> parameterValues)
      • addParameterOrValues

        public void addParameterOrValues​(java.util.List<SearchParameterValue> orValues)
      • setParameterOrValues

        public void setParameterOrValues​(java.util.List<java.util.List<SearchParameterValue>> orValues)
      • clearParameterValues

        public void clearParameterValues()
      • clearParameterOrValues

        public void clearParameterOrValues()
      • getSortCriteria

        public java.util.Map<PropertyDescriptor,​java.lang.Boolean> getSortCriteria()
      • setSortCriteria

        public void setSortCriteria​(java.util.Map<PropertyDescriptor,​java.lang.Boolean> criteria)
      • addSortCriterion

        public void addSortCriterion​(PropertyDescriptor sortProperty,
                                     boolean asc)
      • removeSortCriterion

        public void removeSortCriterion​(PropertyDescriptor sortProperty)
      • isOrMode

        public boolean isOrMode()
        Tells whether all search parameters are OR-connected or AND-connected.
      • setOrMode

        public void setOrMode​(boolean orMode)
        Defines whether all search parameters should be OR-connected or AND-connected.
        Parameters:
        orMode - if true parameter are OR-connected, otherwise they're AND-connected
      • getSelectedTypes

        public java.util.Set<SearchType> getSelectedTypes()
      • getContextParameter

        public java.lang.Object getContextParameter​(java.lang.String key)
      • setContextParameter

        public void setContextParameter​(java.lang.String key,
                                        java.lang.Object value)
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • isExcludeSubTypes

        public boolean isExcludeSubTypes()
      • setExcludeSubTypes

        public void setExcludeSubTypes​(boolean excludeSubTypes)
      • isNeedTotalCount

        public boolean isNeedTotalCount()
      • setNeedTotalCount

        public void setNeedTotalCount​(boolean needTotalCount)
      • setSimpleSearch

        public void setSimpleSearch​(boolean simpleSearch)
      • isSimpleSearch

        public boolean isSimpleSearch()
        Returns:
        the simpleSearch