Class WorkEffortSearch.WorkEffortSearchContext
java.lang.Object
org.apache.ofbiz.workeffort.workeffort.WorkEffortSearch.WorkEffortSearchContext
- Enclosing class:
- WorkEffortSearch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWorkEffortSearchConstraints
(List<? extends WorkEffortSearch.WorkEffortSearchConstraint> workEffortSearchConstraintList) Add work effort search constraints.doSearch()
Do search array list.void
Finish keyword constraints.Gets delegator.Gets total results.Make work effort id list array list.void
saveSearchResultInfo
(Long numResults, Double secondsTotal) Save search result info.void
setMaxResults
(Integer maxResults) Sets max results.void
setResultOffset
(Integer resultOffset) Sets result offset.void
setResultSortOrder
(WorkEffortSearch.ResultSortOrder resultSortOrder) Sets result sort order.
-
Constructor Details
-
WorkEffortSearchContext
-
-
Method Details
-
getDelegator
Gets delegator.- Returns:
- the delegator
-
addWorkEffortSearchConstraints
public void addWorkEffortSearchConstraints(List<? extends WorkEffortSearch.WorkEffortSearchConstraint> workEffortSearchConstraintList) Add work effort search constraints.- Parameters:
workEffortSearchConstraintList
- the work effort search constraint list
-
setResultSortOrder
Sets result sort order.- Parameters:
resultSortOrder
- the result sort order
-
setResultOffset
Sets result offset.- Parameters:
resultOffset
- the result offset
-
setMaxResults
Sets max results.- Parameters:
maxResults
- the max results
-
getTotalResults
Gets total results.- Returns:
- the total results
-
doSearch
Do search array list.- Returns:
- the array list
-
finishKeywordConstraints
public void finishKeywordConstraints()Finish keyword constraints. -
doQuery
- 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
Make work effort id list array list.- Parameters:
eli
- the eli- Returns:
- the array list
-
saveSearchResultInfo
Save search result info.- Parameters:
numResults
- the num resultssecondsTotal
- the seconds total
-