| Package | Description |
|---|---|
| com.googlecode.genericdao.search |
| 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 <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.
|
| Modifier and Type | Method and Description |
|---|---|
static IMutableSearch |
SearchUtil.copy(ISearch source)
Copy the contents of the source search object into a new search object.
|
IMutableSearch |
IMutableSearch.setDisjunction(boolean disjunction) |
IMutableSearch |
Search.setDistinct(boolean distinct) |
IMutableSearch |
IMutableSearch.setDistinct(boolean distinct) |
IMutableSearch |
IMutableSearch.setFetches(List<String> fetches) |
IMutableSearch |
IMutableSearch.setFields(List<Field> fields) |
IMutableSearch |
IMutableSearch.setFilters(List<Filter> filters) |
IMutableSearch |
IMutableSearch.setFirstResult(int firstResult) |
IMutableSearch |
IMutableSearch.setMaxResults(int maxResults) |
IMutableSearch |
IMutableSearch.setPage(int page) |
IMutableSearch |
IMutableSearch.setResultMode(int resultMode) |
IMutableSearch |
IMutableSearch.setSearchClass(Class<?> searchClass) |
IMutableSearch |
IMutableSearch.setSorts(List<Sort> sorts) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SearchUtil.addFetch(IMutableSearch search,
String property) |
static void |
SearchUtil.addFetches(IMutableSearch search,
String... properties) |
static void |
SearchUtil.addField(IMutableSearch search,
Field field) |
static void |
SearchUtil.addField(IMutableSearch search,
String property)
If this field is used with
resultMode == RESULT_MAP, the
property will also be used as the key for this value in the
map. |
static void |
SearchUtil.addField(IMutableSearch search,
String property,
int operator)
If this field is used with
resultMode == RESULT_MAP, the
property will also be used as the key for this value in the
map. |
static void |
SearchUtil.addField(IMutableSearch search,
String property,
int operator,
String key)
If this field is used with
resultMode == RESULT_MAP, the
key will be used as the key for this value in the map. |
static void |
SearchUtil.addField(IMutableSearch search,
String property,
String key)
If this field is used with
resultMode == RESULT_MAP, the
key will be used as the key for this value in the map. |
static void |
SearchUtil.addFields(IMutableSearch search,
Field... fields) |
static void |
SearchUtil.addFilter(IMutableSearch search,
Filter filter) |
static void |
SearchUtil.addFilterAll(IMutableSearch search,
String property,
Filter filter)
Add a filter that uses the ALL operator.
|
static void |
SearchUtil.addFilterAnd(IMutableSearch search,
Filter... filters)
Add a filter that uses the AND operator.
|
static void |
SearchUtil.addFilterCustom(IMutableSearch search,
String expression)
Add a filter that uses a custom expression.
|
static void |
SearchUtil.addFilterCustom(IMutableSearch search,
String expression,
Collection<?> values)
Add a filter that uses a custom expression.
|
static void |
SearchUtil.addFilterCustom(IMutableSearch search,
String expression,
Object... values)
Add a filter that uses a custom expression.
|
static void |
SearchUtil.addFilterEmpty(IMutableSearch search,
String property)
Add a filter that uses the IS EMPTY operator.
|
static void |
SearchUtil.addFilterEqual(IMutableSearch search,
String property,
Object value)
Add a filter that uses the == operator.
|
static void |
SearchUtil.addFilterGreaterOrEqual(IMutableSearch search,
String property,
Object value)
Add a filter that uses the >= operator.
|
static void |
SearchUtil.addFilterGreaterThan(IMutableSearch search,
String property,
Object value)
Add a filter that uses the > operator.
|
static void |
SearchUtil.addFilterILike(IMutableSearch search,
String property,
String value)
Add a filter that uses the ILIKE operator.
|
static void |
SearchUtil.addFilterIn(IMutableSearch search,
String property,
Collection<?> value)
Add a filter that uses the IN operator.
|
static void |
SearchUtil.addFilterIn(IMutableSearch search,
String property,
Object... value)
Add a filter that uses the IN operator.
|
static void |
SearchUtil.addFilterLessOrEqual(IMutableSearch search,
String property,
Object value)
Add a filter that uses the <= operator.
|
static void |
SearchUtil.addFilterLessThan(IMutableSearch search,
String property,
Object value)
Add a filter that uses the < operator.
|
static void |
SearchUtil.addFilterLike(IMutableSearch search,
String property,
String value)
Add a filter that uses the LIKE operator.
|
static void |
SearchUtil.addFilterNone(IMutableSearch search,
String property,
Filter filter)
Add a filter that uses the NONE operator.
|
static void |
SearchUtil.addFilterNot(IMutableSearch search,
Filter filter)
Add a filter that uses the NOT operator.
|
static void |
SearchUtil.addFilterNotEmpty(IMutableSearch search,
String property)
Add a filter that uses the IS NOT EMPTY operator.
|
static void |
SearchUtil.addFilterNotEqual(IMutableSearch search,
String property,
Object value)
Add a filter that uses the != operator.
|
static void |
SearchUtil.addFilterNotIn(IMutableSearch search,
String property,
Collection<?> value)
Add a filter that uses the NOT IN operator.
|
static void |
SearchUtil.addFilterNotIn(IMutableSearch search,
String property,
Object... value)
Add a filter that uses the NOT IN operator.
|
static void |
SearchUtil.addFilterNotNull(IMutableSearch search,
String property)
Add a filter that uses the IS NOT NULL operator.
|
static void |
SearchUtil.addFilterNull(IMutableSearch search,
String property)
Add a filter that uses the IS NULL operator.
|
static void |
SearchUtil.addFilterOr(IMutableSearch search,
Filter... filters)
Add a filter that uses the OR operator.
|
static void |
SearchUtil.addFilters(IMutableSearch search,
Filter... filters) |
static void |
SearchUtil.addFilterSome(IMutableSearch search,
String property,
Filter filter)
Add a filter that uses the SOME operator.
|
static void |
SearchUtil.addSort(IMutableSearch search,
Sort sort) |
static void |
SearchUtil.addSort(IMutableSearch search,
String property,
boolean desc)
Add sort by property.
|
static void |
SearchUtil.addSort(IMutableSearch search,
String property,
boolean desc,
boolean ignoreCase)
Add sort by property.
|
static void |
SearchUtil.addSortAsc(IMutableSearch search,
String property)
Add ascending sort by property
|
static void |
SearchUtil.addSortAsc(IMutableSearch search,
String property,
boolean ignoreCase)
Add ascending sort by property
|
static void |
SearchUtil.addSortDesc(IMutableSearch search,
String property)
Add descending sort by property
|
static void |
SearchUtil.addSortDesc(IMutableSearch search,
String property,
boolean ignoreCase)
Add descending sort by property
|
static void |
SearchUtil.addSorts(IMutableSearch search,
Sort... sorts) |
static void |
SearchUtil.clear(IMutableSearch search) |
static void |
SearchUtil.clearFetches(IMutableSearch search) |
static void |
SearchUtil.clearFields(IMutableSearch search) |
static void |
SearchUtil.clearFilters(IMutableSearch search) |
static void |
SearchUtil.clearPaging(IMutableSearch search) |
static void |
SearchUtil.clearSorts(IMutableSearch search) |
static void |
SearchUtil.mergeFetches(IMutableSearch search,
List<String> fetches)
Modify the search by adding the given fetches to the current fetches in
the search.
|
static void |
SearchUtil.mergeFetches(IMutableSearch search,
String... fetches)
Modify the search by adding the given fetches to the current fetches in
the search.
|
static void |
SearchUtil.mergeFieldsAfter(IMutableSearch search,
Field... fields)
Modify the search by adding the given fields after the current fields in
the search.
|
static void |
SearchUtil.mergeFieldsAfter(IMutableSearch search,
List<Field> fields)
Modify the search by adding the given fields after the current fields in
the search.
|
static void |
SearchUtil.mergeFieldsBefore(IMutableSearch search,
Field... fields)
Modify the search by adding the given fields before the current fields in
the search.
|
static void |
SearchUtil.mergeFieldsBefore(IMutableSearch search,
List<Field> fields)
Modify the search by adding the given fields before the current fields in
the search.
|
static void |
SearchUtil.mergeFiltersAnd(IMutableSearch search,
Filter... filters)
Modify the search by adding the given filters using AND semantics
|
static void |
SearchUtil.mergeFiltersAnd(IMutableSearch search,
List<Filter> filters)
Modify the search by adding the given filters using AND semantics
|
static void |
SearchUtil.mergeFiltersOr(IMutableSearch search,
Filter... filters)
Modify the search by adding the given filters using OR semantics
|
static void |
SearchUtil.mergeFiltersOr(IMutableSearch search,
List<Filter> filters)
Modify the search by adding the given filters using OR semantics
|
static void |
SearchUtil.mergeSortsAfter(IMutableSearch search,
List<Sort> sorts)
Modify the search by adding the given sorts after the current sorts in
the search.
|
static void |
SearchUtil.mergeSortsAfter(IMutableSearch search,
Sort... sorts)
Modify the search by adding the given sorts after the current sorts in
the search.
|
static void |
SearchUtil.mergeSortsBefore(IMutableSearch search,
List<Sort> sorts)
Modify the search by adding the given sorts before the current sorts in
the search.
|
static void |
SearchUtil.mergeSortsBefore(IMutableSearch search,
Sort... sorts)
Modify the search by adding the given sorts before the current sorts in
the search.
|
static void |
SearchUtil.removeFetch(IMutableSearch search,
String property) |
static void |
SearchUtil.removeField(IMutableSearch search,
Field field) |
static void |
SearchUtil.removeField(IMutableSearch search,
String property) |
static void |
SearchUtil.removeField(IMutableSearch search,
String property,
String key) |
static void |
SearchUtil.removeFilter(IMutableSearch search,
Filter filter) |
static void |
SearchUtil.removeFiltersOnProperty(IMutableSearch search,
String property)
Remove all filters on the given property.
|
static void |
SearchUtil.removeSort(IMutableSearch search,
Sort sort) |
static void |
SearchUtil.removeSort(IMutableSearch search,
String property) |
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.
|
Copyright © 2008-2013. All Rights Reserved.