Interface AnySearchDAO
- All Known Implementing Classes:
AbstractAnySearchDAO,ElasticsearchAnySearchDAO,MariaDBJPAAnySearchDAO,MySQLJPAAnySearchDAO,Neo4jAnySearchDAO,OpenSearchAnySearchDAO,OracleJPAAnySearchDAO,PGJPAAnySearchDAO
public interface AnySearchDAO
-
Method Summary
Modifier and TypeMethodDescriptionlongcount(Realm base, boolean recursive, Set<String> adminRealms, SearchCond searchCondition, AnyTypeKind kind) findByDerAttrValue(String expression, String value, boolean ignoreCaseMatch, AnyTypeKind kind) Find any objects by derived attribute value.default SearchCondsearch(SearchCond searchCondition, List<org.springframework.data.domain.Sort.Order> orderBy, AnyTypeKind kind) search(SearchCond searchCondition, AnyTypeKind kind) search(Realm base, boolean recursive, Set<String> adminRealms, SearchCond searchCondition, org.springframework.data.domain.Pageable pageable, AnyTypeKind kind)
-
Method Details
-
findByDerAttrValue
<T extends Any> List<T> findByDerAttrValue(String expression, String value, boolean ignoreCaseMatch, AnyTypeKind kind) Find any objects by derived attribute value. This method could fail if one or more string literals contained into the derived attribute value provided derive from identifier (schema key) replacement. When you are going to specify a derived attribute expression you must be quite sure that string literals used to build the expression cannot be found into the attribute values used to replace attribute schema keys used as identifiers.- Type Parameters:
T- any- Parameters:
expression- JEXL expressionvalue- derived attribute valueignoreCaseMatch- whether comparison for string values should take case into account or notkind- any type kind- Returns:
- list of any objects
-
count
long 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 type kind- Returns:
- size of search result
-
search
- 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<org.springframework.data.domain.Sort.Order> orderBy, AnyTypeKind kind) - Type Parameters:
T- any- Parameters:
searchCondition- the search conditionorderBy- list of ordering clauseskind- any type kind- 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, org.springframework.data.domain.Pageable pageable, 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 conditionpageable- paging informationkind- any type kind- Returns:
- the list of any objects matching the given search condition (in the given page)
-
getAllMatchingCond
- Returns:
- the search condition to match all entities
-