Interface AnySearchDAO
-
- All Known Implementing Classes:
AbstractAnySearchDAO
,ElasticsearchAnySearchDAO
,JPAAnySearchDAO
,MaJPAJSONAnySearchDAO
,MyJPAJSONAnySearchDAO
,OJPAJSONAnySearchDAO
,OpenSearchAnySearchDAO
,PGJPAJSONAnySearchDAO
public interface AnySearchDAO extends DAO<Any<?>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
count(Realm base, boolean recursive, Set<String> adminRealms, SearchCond searchCondition, AnyTypeKind kind)
<T extends Any<?>>
List<T>search(SearchCond searchCondition, List<OrderByClause> orderBy, AnyTypeKind kind)
<T extends Any<?>>
List<T>search(SearchCond searchCondition, AnyTypeKind kind)
<T extends Any<?>>
List<T>search(Realm base, boolean recursive, Set<String> adminRealms, SearchCond searchCondition, int page, int itemsPerPage, List<OrderByClause> orderBy, AnyTypeKind kind)
-
-
-
Method Detail
-
count
int count(Realm base, boolean recursive, Set<String> adminRealms, SearchCond searchCondition, AnyTypeKind kind)
- Parameters:
base
- Realm to start searching fromrecursive
- whether search should recursively include results from child RealmsadminRealms
- realms for which the caller owns the proper entitlement(s)searchCondition
- the search conditionkind
- any object- Returns:
- size of search result
-
search
<T extends Any<?>> List<T> search(SearchCond searchCondition, AnyTypeKind kind)
- Type Parameters:
T
- any- Parameters:
searchCondition
- the search conditionkind
- any object- Returns:
- the list of any objects matching the given search condition
-
search
<T extends Any<?>> List<T> search(SearchCond searchCondition, List<OrderByClause> orderBy, AnyTypeKind kind)
- Type Parameters:
T
- any- Parameters:
searchCondition
- the search conditionorderBy
- list of ordering clauseskind
- any object- Returns:
- the list of any objects matching the given search condition
-
search
<T extends Any<?>> List<T> search(Realm base, boolean recursive, Set<String> adminRealms, SearchCond searchCondition, int page, int itemsPerPage, List<OrderByClause> orderBy, AnyTypeKind kind)
- Type Parameters:
T
- any- Parameters:
base
- Realm to start searching fromrecursive
- whether search should recursively include results from child RealmsadminRealms
- realms for which the caller owns the proper entitlement(s)searchCondition
- the search conditionpage
- position of the first result, start from 1itemsPerPage
- number of results per pageorderBy
- list of ordering clauseskind
- any object- Returns:
- the list of any objects matching the given search condition (in the given page)
-
-