Class ProductSearch.ProductSearchContext

  • Enclosing class:
    ProductSearch

    public static class ProductSearch.ProductSearchContext
    extends java.lang.Object
    • Field Detail

      • index

        public int index
      • entityConditionList

        public java.util.List<EntityCondition> entityConditionList
      • orderByList

        public java.util.List<java.lang.String> orderByList
      • fieldsToSelect

        public java.util.List<java.lang.String> fieldsToSelect
      • productIdGroupBy

        public boolean productIdGroupBy
      • includedKeywordSearch

        public boolean includedKeywordSearch
      • nowTimestamp

        public java.sql.Timestamp nowTimestamp
      • keywordFixedOrSetAndList

        public java.util.List<java.util.Set<java.lang.String>> keywordFixedOrSetAndList
      • orKeywordFixedSet

        public java.util.Set<java.lang.String> orKeywordFixedSet
      • andKeywordFixedSet

        public java.util.Set<java.lang.String> andKeywordFixedSet
      • productSearchConstraintList

        public java.util.List<GenericValue> productSearchConstraintList
      • resultOffset

        public java.lang.Integer resultOffset
      • maxResults

        public java.lang.Integer maxResults
      • visitId

        protected java.lang.String visitId
      • totalResults

        protected java.lang.Integer totalResults
      • includeCategoryIds

        public java.util.Set<java.lang.String> includeCategoryIds
      • excludeCategoryIds

        public java.util.Set<java.lang.String> excludeCategoryIds
      • alwaysIncludeCategoryIds

        public java.util.Set<java.lang.String> alwaysIncludeCategoryIds
      • includeCategoryIdOrSetAndList

        public java.util.List<java.util.Set<java.lang.String>> includeCategoryIdOrSetAndList
      • alwaysIncludeCategoryIdOrSetAndList

        public java.util.List<java.util.Set<java.lang.String>> alwaysIncludeCategoryIdOrSetAndList
      • includeFeatureIds

        public java.util.Set<java.lang.String> includeFeatureIds
      • excludeFeatureIds

        public java.util.Set<java.lang.String> excludeFeatureIds
      • alwaysIncludeFeatureIds

        public java.util.Set<java.lang.String> alwaysIncludeFeatureIds
      • includeFeatureIdOrSetAndList

        public java.util.List<java.util.Set<java.lang.String>> includeFeatureIdOrSetAndList
      • alwaysIncludeFeatureIdOrSetAndList

        public java.util.List<java.util.Set<java.lang.String>> alwaysIncludeFeatureIdOrSetAndList
      • includeFeatureCategoryIds

        public java.util.Set<java.lang.String> includeFeatureCategoryIds
      • excludeFeatureCategoryIds

        public java.util.Set<java.lang.String> excludeFeatureCategoryIds
      • alwaysIncludeFeatureCategoryIds

        public java.util.Set<java.lang.String> alwaysIncludeFeatureCategoryIds
      • includeFeatureGroupIds

        public java.util.Set<java.lang.String> includeFeatureGroupIds
      • excludeFeatureGroupIds

        public java.util.Set<java.lang.String> excludeFeatureGroupIds
      • alwaysIncludeFeatureGroupIds

        public java.util.Set<java.lang.String> alwaysIncludeFeatureGroupIds
      • keywordTypeIds

        public java.util.List<java.lang.String> keywordTypeIds
      • statusId

        public java.lang.String statusId
    • Constructor Detail

      • ProductSearchContext

        public ProductSearchContext​(Delegator delegator,
                                    java.lang.String visitId)
    • Method Detail

      • getDelegator

        public Delegator getDelegator()
      • setResultOffset

        public void setResultOffset​(java.lang.Integer resultOffset)
      • setMaxResults

        public void setMaxResults​(java.lang.Integer maxResults)
      • getTotalResults

        public java.lang.Integer getTotalResults()
      • doSearch

        public java.util.ArrayList<java.lang.String> doSearch()
      • finishKeywordConstraints

        public void finishKeywordConstraints()
      • finishCategoryAndFeatureConstraints

        public void finishCategoryAndFeatureConstraints()
      • doQuery

        public EntityListIterator doQuery​(Delegator delegator)
        Parameters:
        delegator - the delegator
        Returns:
        EntityListIterator representing the result of the query: NOTE THAT THIS MUST BE CLOSED WHEN YOU ARE DONE WITH IT (preferably in a finally block), AND DON'T LEAVE IT OPEN TOO LONG BECAUSE IT WILL MAINTAIN A DATABASE CONNECTION.
      • makeProductIdList

        public java.util.ArrayList<java.lang.String> makeProductIdList​(EntityListIterator eli)
      • saveSearchResultInfo

        public void saveSearchResultInfo​(java.lang.Long numResults,
                                         java.lang.Double secondsTotal)