Class WorkEffortSearch.WorkEffortSearchContext
- java.lang.Object
-
- org.apache.ofbiz.workeffort.workeffort.WorkEffortSearch.WorkEffortSearchContext
-
- Enclosing class:
- WorkEffortSearch
public static class WorkEffortSearch.WorkEffortSearchContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Set<java.lang.String>
andKeywordFixedSet
protected Delegator
delegator
DynamicViewEntity
dynamicViewEntity
java.util.List<EntityCondition>
entityConditionList
java.util.List<java.lang.String>
fieldsToSelect
boolean
includedKeywordSearch
int
index
java.util.List<java.util.Set<java.lang.String>>
keywordFixedOrSetAndList
java.lang.Integer
maxResults
java.sql.Timestamp
nowTimestamp
java.util.List<java.lang.String>
orderByList
java.util.Set<java.lang.String>
orKeywordFixedSet
java.lang.Integer
resultOffset
WorkEffortSearch.ResultSortOrder
resultSortOrder
protected java.lang.Integer
totalResults
protected java.lang.String
visitId
boolean
workEffortIdGroupBy
java.util.List<GenericValue>
workEffortSearchConstraintList
-
Constructor Summary
Constructors Constructor Description WorkEffortSearchContext(Delegator delegator, java.lang.String visitId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWorkEffortSearchConstraints(java.util.List<? extends WorkEffortSearch.WorkEffortSearchConstraint> workEffortSearchConstraintList)
EntityListIterator
doQuery(Delegator delegator)
java.util.ArrayList<java.lang.String>
doSearch()
void
finishKeywordConstraints()
Delegator
getDelegator()
java.lang.Integer
getTotalResults()
java.util.ArrayList<java.lang.String>
makeWorkEffortIdList(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(WorkEffortSearch.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
-
workEffortIdGroupBy
public boolean workEffortIdGroupBy
-
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
-
workEffortSearchConstraintList
public java.util.List<GenericValue> workEffortSearchConstraintList
-
resultSortOrder
public WorkEffortSearch.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
-
-
Constructor Detail
-
WorkEffortSearchContext
public WorkEffortSearchContext(Delegator delegator, java.lang.String visitId)
-
-
Method Detail
-
getDelegator
public Delegator getDelegator()
-
addWorkEffortSearchConstraints
public void addWorkEffortSearchConstraints(java.util.List<? extends WorkEffortSearch.WorkEffortSearchConstraint> workEffortSearchConstraintList)
-
setResultSortOrder
public void setResultSortOrder(WorkEffortSearch.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()
-
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.
-
makeWorkEffortIdList
public java.util.ArrayList<java.lang.String> makeWorkEffortIdList(EntityListIterator eli)
-
saveSearchResultInfo
public void saveSearchResultInfo(java.lang.Long numResults, java.lang.Double secondsTotal)
-
-