Package org.apache.ofbiz.product.product
Class ProductSearch.ProductSearchContext
- java.lang.Object
-
- org.apache.ofbiz.product.product.ProductSearch.ProductSearchContext
-
- Enclosing class:
- ProductSearch
public static class ProductSearch.ProductSearchContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<java.util.Set<java.lang.String>>
alwaysIncludeCategoryIdOrSetAndList
java.util.Set<java.lang.String>
alwaysIncludeCategoryIds
java.util.Set<java.lang.String>
alwaysIncludeFeatureCategoryIds
java.util.Set<java.lang.String>
alwaysIncludeFeatureGroupIds
java.util.List<java.util.Set<java.lang.String>>
alwaysIncludeFeatureIdOrSetAndList
java.util.Set<java.lang.String>
alwaysIncludeFeatureIds
java.util.Set<java.lang.String>
andKeywordFixedSet
protected Delegator
delegator
DynamicViewEntity
dynamicViewEntity
java.util.List<EntityCondition>
entityConditionList
java.util.Set<java.lang.String>
excludeCategoryIds
java.util.Set<java.lang.String>
excludeFeatureCategoryIds
java.util.Set<java.lang.String>
excludeFeatureGroupIds
java.util.Set<java.lang.String>
excludeFeatureIds
java.util.List<java.lang.String>
fieldsToSelect
java.util.List<java.util.Set<java.lang.String>>
includeCategoryIdOrSetAndList
java.util.Set<java.lang.String>
includeCategoryIds
boolean
includedKeywordSearch
java.util.Set<java.lang.String>
includeFeatureCategoryIds
java.util.Set<java.lang.String>
includeFeatureGroupIds
java.util.List<java.util.Set<java.lang.String>>
includeFeatureIdOrSetAndList
java.util.Set<java.lang.String>
includeFeatureIds
int
index
java.util.List<java.util.Set<java.lang.String>>
keywordFixedOrSetAndList
java.util.List<java.lang.String>
keywordTypeIds
java.lang.Integer
maxResults
java.sql.Timestamp
nowTimestamp
java.util.List<java.lang.String>
orderByList
java.util.Set<java.lang.String>
orKeywordFixedSet
boolean
productIdGroupBy
java.util.List<GenericValue>
productSearchConstraintList
java.lang.Integer
resultOffset
ProductSearch.ResultSortOrder
resultSortOrder
java.lang.String
statusId
protected java.lang.Integer
totalResults
protected java.lang.String
visitId
-
Constructor Summary
Constructors Constructor Description ProductSearchContext(Delegator delegator, java.lang.String visitId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProductSearchConstraints(java.util.List<ProductSearch.ProductSearchConstraint> productSearchConstraintList)
EntityListIterator
doQuery(Delegator delegator)
java.util.ArrayList<java.lang.String>
doSearch()
void
finishCategoryAndFeatureConstraints()
void
finishKeywordConstraints()
Delegator
getDelegator()
java.lang.Integer
getTotalResults()
java.util.ArrayList<java.lang.String>
makeProductIdList(EntityListIterator eli)
void
saveSearchResultInfo(java.lang.Long numResults, java.lang.Double secondsTotal)
void
setMaxResults(java.lang.Integer maxResults)
void
setResultOffset(java.lang.Integer resultOffset)
void
setResultSortOrder(ProductSearch.ResultSortOrder resultSortOrder)
-
-
-
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
-
dynamicViewEntity
public DynamicViewEntity dynamicViewEntity
-
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
-
resultSortOrder
public ProductSearch.ResultSortOrder resultSortOrder
-
resultOffset
public java.lang.Integer resultOffset
-
maxResults
public java.lang.Integer maxResults
-
delegator
protected Delegator delegator
-
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()
-
addProductSearchConstraints
public void addProductSearchConstraints(java.util.List<ProductSearch.ProductSearchConstraint> productSearchConstraintList)
-
setResultSortOrder
public void setResultSortOrder(ProductSearch.ResultSortOrder resultSortOrder)
-
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)
-
-