public interface SearchFacade
| Modifier and Type | Method and Description |
|---|---|
int |
count(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(Object example)
Generates a search filter from the given example using default options.
|
Filter |
getFilterFromExample(Object example,
ExampleOptions options)
Generates a search filter from the given example using the specified options.
|
List |
search(Class<?> searchClass,
ISearch search)
Search for objects based on the search parameters in the specified
ISearch object. |
List |
search(ISearch search)
Search for objects based on the search parameters in the specified
ISearch object. |
SearchResult |
searchAndCount(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. |
Object |
searchUnique(Class<?> searchClass,
ISearch search)
Search for a single result using the given parameters.
|
Object |
searchUnique(ISearch search)
Search for a single result using the given parameters.
|
List search(ISearch search)
ISearch object.ISearchList search(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.ISearchint count(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.ISearchSearchResult searchAndCount(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.ISearchObject searchUnique(ISearch search)
Object searchUnique(Class<?> searchClass, ISearch search)
Filter getFilterFromExample(Object example)
Filter getFilterFromExample(Object example, ExampleOptions options)
Copyright © 2008-2013. All Rights Reserved.