Class SearchQuery

    • Constructor Detail

      • SearchQuery

        protected SearchQuery​(SearchMethod type,
                              ProductIndexQuery query)
        Construct a new SearchQuery object.
        Parameters:
        type - the type of search.
        query - the query parameters.
    • Method Detail

      • getProductIndexQuery

        public ProductIndexQuery getProductIndexQuery()
        Returns:
        ProductIndexQuery
      • getResult

        public abstract java.lang.Object getResult()
        Get the result associated with a specific query type.
        Returns:
        the result, or null if the search has not yet executed.
      • getSearchQuery

        public static SearchQuery getSearchQuery​(SearchMethod type,
                                                 ProductIndexQuery query)
        Create a SearchQuery object based on a SearchType.
        Parameters:
        type - the search type to create
        query - the associated query
        Returns:
        a SearchQuery, or null if type is unknown.
      • equals

        public boolean equals​(java.lang.Object that)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(SearchQuery that)
        Specified by:
        compareTo in interface java.lang.Comparable<SearchQuery>
      • setError

        public void setError​(java.lang.String error)
        Parameters:
        error - the error to set
      • getError

        public java.lang.String getError()
        Returns:
        the error or null if no error occurred.