| Package | Description |
|---|---|
| com.googlecode.genericdao.search | |
| com.googlecode.genericdao.search.flex | |
| com.googlecode.genericdao.search.jpa |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IMutableSearch
IMutableSearch is an extension of ISearch that
provides setters for all of the properties. |
| Modifier and Type | Class and Description |
|---|---|
class |
Search
A convenient fully-featured implementation of ISearch and IMutableSearch for
general use in Java code.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
SearchUtil.calcFirstResult(ISearch search)
Calculate the first result to use given the
firstResult,
page and maxResults values of the search
object. |
static IMutableSearch |
SearchUtil.copy(ISearch source)
Copy the contents of the source search object into a new search object.
|
static <T extends IMutableSearch> |
SearchUtil.copy(ISearch source,
T destination)
Copy the contents of the source search object to the destination search
object, overriding any contents previously found in the destination.
|
int |
SearchFacade.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 |
SearchFacade.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. |
static boolean |
SearchUtil.equals(ISearch search,
Object obj)
Return true if the search objects have equivalent contents.
|
String |
BaseSearchProcessor.generateQL(Class<?> entityClass,
ISearch search,
List<Object> paramList)
Generate the QL string for a given search.
|
String |
BaseSearchProcessor.generateRowCountQL(Class<?> entityClass,
ISearch search,
List<Object> paramList)
Generate the QL string that will query the total number of results from a
given search (paging is ignored).
|
static int |
SearchUtil.hashCode(ISearch search)
Return a hash code value for the given search.
|
List |
SearchFacade.search(Class<?> searchClass,
ISearch search)
Search for objects based on the search parameters in the specified
ISearch object. |
List |
SearchFacade.search(ISearch search)
Search for objects based on the search parameters in the specified
ISearch object. |
SearchResult |
SearchFacade.searchAndCount(Class<?> searchClass,
ISearch search)
Returns a
SearchResult object that includes the list of
results like search() and the total length like
searchLength. |
SearchResult |
SearchFacade.searchAndCount(ISearch search)
Returns a
SearchResult object that includes the list of
results like search() and the total length like
searchLength. |
Object |
SearchFacade.searchUnique(Class<?> searchClass,
ISearch search)
Search for a single result using the given parameters.
|
Object |
SearchFacade.searchUnique(ISearch search)
Search for a single result using the given parameters.
|
static IMutableSearch |
SearchUtil.shallowCopy(ISearch source)
Copy the contents of the source search object to the destination search
object, overriding any contents previously found in the destination.
|
static IMutableSearch |
SearchUtil.shallowCopy(ISearch source,
IMutableSearch destination)
Copy the contents of the source search object to the destination search
object, overriding any contents previously found in the destination.
|
static String |
SearchUtil.toString(ISearch search)
Return a human-readable string describing the contents of the given
search.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FlexSearchWrapper
This provides a wrapper around a FlexSearch so that is can be passed into DAO
methods requiring the ISearch interface.
|
| Modifier and Type | Method and Description |
|---|---|
int |
JPASearchFacade.count(Class<?> searchClass,
ISearch search) |
int |
JPASearchProcessor.count(javax.persistence.EntityManager entityManager,
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 |
JPASearchProcessor.count(javax.persistence.EntityManager entityManager,
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 |
JPASearchFacade.count(ISearch search) |
List |
JPASearchFacade.search(Class<?> searchClass,
ISearch search) |
List |
JPASearchProcessor.search(javax.persistence.EntityManager entityManager,
Class<?> searchClass,
ISearch search)
Search for objects based on the search parameters in the specified
ISearch object. |
List |
JPASearchProcessor.search(javax.persistence.EntityManager entityManager,
ISearch search)
Search for objects based on the search parameters in the specified
ISearch object. |
List |
JPASearchFacade.search(ISearch search) |
SearchResult |
JPASearchFacade.searchAndCount(Class<?> searchClass,
ISearch search) |
SearchResult |
JPASearchProcessor.searchAndCount(javax.persistence.EntityManager entityManager,
Class<?> searchClass,
ISearch search)
Returns a
SearchResult object that includes the list of
results like search() and the total length like
searchLength. |
SearchResult |
JPASearchProcessor.searchAndCount(javax.persistence.EntityManager entityManager,
ISearch search)
Returns a
SearchResult object that includes the list of
results like search() and the total length like
searchLength. |
SearchResult |
JPASearchFacade.searchAndCount(ISearch search) |
Object |
JPASearchFacade.searchUnique(Class<?> searchClass,
ISearch search) |
Object |
JPASearchProcessor.searchUnique(javax.persistence.EntityManager entityManager,
Class<?> entityClass,
ISearch search)
Search for a single result using the given parameters.
|
Object |
JPASearchProcessor.searchUnique(javax.persistence.EntityManager entityManager,
ISearch search)
Search for a single result using the given parameters.
|
Object |
JPASearchFacade.searchUnique(ISearch search) |
Copyright © 2008-2013. All Rights Reserved.