Interface TrackableRsqlFilterExecutor<D extends Trackable>
-
- All Known Subinterfaces:
BaseTrackableRepository<D>
public interface TrackableRsqlFilterExecutor<D extends Trackable>Marker interface to indicate that aTrackableRepositorycan also handle RSQL-based query methods.- Author:
- Phillip Verheyden (phillipuniverse)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists(cz.jirutka.rsql.parser.ast.Node filters, ContextInfo contextInfo)Checks whether the data store contains elements that match the givenNode.List<D>findAll(cz.jirutka.rsql.parser.ast.Node filters, ContextInfo contextInfo)Retrieve all domain instances using an RSQLNodeto restrict results.org.springframework.data.domain.Page<D>findAll(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, ContextInfo contextInfo)Retrieve all domain instances using an RSQLNodeto restrict results.List<D>findAll(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, ContextInfo contextInfo)Retrieve all domain instances using an RSQLNodeto restrict results.org.springframework.data.domain.Page<D>findAll(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, org.springframework.data.domain.Pageable pageable, ContextInfo contextInfo)Retrieve all domain instances using an RSQLNodeto restrict results.
-
-
-
Method Detail
-
findAll
@Policy(operationTypes=READ) List<D> findAll(@NonNull cz.jirutka.rsql.parser.ast.Node filters, @Nullable ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Nodeto restrict results. If no matches were found an emptyListis returned- Parameters:
filters- the RSQLNodeused to restrict result, must not be nullcontextInfo- request context information around sandbox and multitenant state- Returns:
- The list of narrowed entities or an empty result if none were found
- See Also:
RSQLFilterParser
-
findAll
@Policy(operationTypes=READ) List<D> findAll(@NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, @Nullable ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Nodeto restrict results. If no matches were found an emptyListis returnedThis version also accepts a Spring Data version of a Sort to apply to the result set
- Parameters:
filters- the RSQLNodeused to restrict result, must not be nullsort- The string containing the structured list of sorts to applycontextInfo- Request context information around sandbox and multitenant state- Returns:
- The list of narrowed, sorted entities
- See Also:
RSQLFilterParser
-
findAll
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAll(@NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, @Nullable ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Nodeto restrict results. If no matches were found an emptyPageis returned- Parameters:
filters- the RSQLNodeused to restrict result, must not be nullpageable- may bePageable.unpaged(), must not be null.contextInfo- Request context information around sandbox and multitenant state- Returns:
- The subset (page) of narrowed entities
-
findAll
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAll(@NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, org.springframework.data.domain.Pageable pageable, @Nullable ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Nodeto restrict results. If no matches were found an emptyPageis returnedThis version also accepts a Spring Data version of a Sort to apply to the result set
- Parameters:
filters- the RSQLNodeused to restrict result, must not be nullsort- The sort that should be applied to the resultspageable- may bePageable.unpaged(), must not be null.contextInfo- Request context information around sandbox and multitenant state- Returns:
- The subset (page) of narrowed entities
-
exists
@Policy(operationTypes=READ) boolean exists(@NonNull cz.jirutka.rsql.parser.ast.Node filters, @Nullable ContextInfo contextInfo)
Checks whether the data store contains elements that match the givenNode.- Parameters:
filters- the RSQLNodeused to restrict result, must not be null- Returns:
- true if the data store contains elements that match the given
Node.
-
-