|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Base class for scrolling searches.
| Method Summary | |
java.lang.String |
commandKey()
Returns the String to use to retrieve the appropriate query for this search. |
java.lang.String |
countKey()
Returns the String to use to retrieve the appropriate query to count the entries matching this search. |
int |
entryCount()
The total number of entries in search list. |
boolean |
failsOnEmpty()
Whether to branch to "failure" if list returns zero entries. |
java.lang.Integer |
getScrollFrom()
The relative position of the first entry in this set. |
boolean |
hasParameter()
Returns whether this search takes a parameter (eg primary key) [false]. |
boolean |
isLike()
Returns whether this search uses the LIKE operator so that other methods know to wrap searchValue in a call to
like [false]. |
void |
listLegend(ResultList list)
Setup the legend for the result list. |
Scroller |
newScroller(int entries)
Return new scroller using the current starting point (getScrollFrom), the default limit (set.SCROLL_ROWS), and current count from Access (countCurrent). |
java.util.Collection |
result(java.lang.Object target,
java.lang.Object parameter)
Returns the collection representing the result of the Search [null]. |
java.lang.Object[] |
scrollerParams(java.lang.String parameter)
Return the array of parameters needed to select the entries for this set. |
ProcessResult |
scrollerSearch()
Invoke business logic; return result. |
java.lang.Integer |
scrollOffset()
The number of entries before the first entry in the set (One less than scrollFrom) [0]. |
int |
scrollRows()
The number of entries to return [Scroller.SCROLL_ROWS]. |
java.lang.String |
searchLabel()
Returns a label to the property being searched. |
java.lang.String |
searchProperty()
Returns the name of the property being matched with the searchValue. |
java.lang.Object |
searchValue()
Returns the value used in the search [null]. |
void |
setScrollFrom(java.lang.Integer scrollFrom)
|
java.lang.String |
tokenEmptyDispatch()
Returns the dispatch token for an empty result [Tokens.FAILURE]. |
java.lang.String |
tokenEmptyMessage()
Returns the message token for an empty result [Tokens.DATA_ACCESS_EMPTY]. |
| Method Detail |
public java.lang.Integer getScrollFrom()
public void setScrollFrom(java.lang.Integer scrollFrom)
public java.lang.Integer scrollOffset()
public int scrollRows()
public java.lang.String countKey()
public boolean hasParameter()
getParameter to return the
required parameter.
public java.lang.Object searchValue()
public boolean isLike()
searchValue in a call to
like [false].
public int entryCount()
throws ResourceException
May - throw an exception on data access error
ResourceExceptionpublic java.lang.String commandKey()
public java.lang.String searchProperty()
searchValue.
Default method returns null.
Must be overridden or provide functionality.
public java.lang.String searchLabel()
searchProperty.
Must be overridden or provide functionality.
public boolean failsOnEmpty()
public java.lang.String tokenEmptyMessage()
public java.lang.String tokenEmptyDispatch()
public java.lang.Object[] scrollerParams(java.lang.String parameter)
parameter - The additional parameter needed to select
this set, if any.
public java.util.Collection result(java.lang.Object target,
java.lang.Object parameter)
throws ResourceException
isParameter is false.
target - Bean to use for entriesparameter - Value to use to match entries
ResourceException
public Scroller newScroller(int entries)
throws ResourceException
ResourceException - on data access errorpublic void listLegend(ResultList list)
searchLabel
and searchValue (if any).
public ProcessResult scrollerSearch()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||