|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchFacade
SearchFacade provides a clean interface to the Search APIs.
| Method Summary | |
|---|---|
int |
count(java.lang.Class<?> searchClass,
ISearch search)
Returns the total number of results that would be returned using the given ISearch if there were no paging or maxResult limits. |
int |
count(ISearch search)
Returns the total number of results that would be returned using the given ISearch if there were no paging or maxResult limits. |
Filter |
getFilterFromExample(java.lang.Object example)
Generates a search filter from the given example using default options. |
Filter |
getFilterFromExample(java.lang.Object example,
ExampleOptions options)
Generates a search filter from the given example using the specified options. |
java.util.List |
search(java.lang.Class<?> searchClass,
ISearch search)
Search for objects based on the search parameters in the specified ISearch object. |
java.util.List |
search(ISearch search)
Search for objects based on the search parameters in the specified ISearch object. |
SearchResult |
searchAndCount(java.lang.Class<?> searchClass,
ISearch search)
Returns a SearchResult object that includes the list of
results like search() and the total length like
searchLength. |
SearchResult |
searchAndCount(ISearch search)
Returns a SearchResult object that includes the list of
results like search() and the total length like
searchLength. |
java.lang.Object |
searchUnique(java.lang.Class<?> searchClass,
ISearch search)
Search for a single result using the given parameters. |
java.lang.Object |
searchUnique(ISearch search)
Search for a single result using the given parameters. |
| Method Detail |
|---|
java.util.List search(ISearch search)
ISearch object.
ISearch
java.util.List search(java.lang.Class<?> searchClass,
ISearch search)
ISearch object. Uses the specified searchClass, ignoring the
searchClass specified on the search itself.
ISearchint count(ISearch search)
ISearch if there were no paging or maxResult limits.
ISearch
int count(java.lang.Class<?> searchClass,
ISearch search)
ISearch if there were no paging or maxResult limits.
Uses the specified searchClass, ignoring the searchClass specified on the
search itself.
ISearchSearchResult searchAndCount(ISearch search)
SearchResult object that includes the list of
results like search() and the total length like
searchLength.
ISearch
SearchResult searchAndCount(java.lang.Class<?> searchClass,
ISearch search)
SearchResult object that includes the list of
results like search() and the total length like
searchLength. Uses the specified searchClass, ignoring the
searchClass specified on the search itself.
ISearchjava.lang.Object searchUnique(ISearch search)
java.lang.Object searchUnique(java.lang.Class<?> searchClass,
ISearch search)
Filter getFilterFromExample(java.lang.Object example)
Filter getFilterFromExample(java.lang.Object example,
ExampleOptions options)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||