Interface ExecutableFindByQueryOperation.FindByQueryWithQuery<T>
- Type Parameters:
T- the entity type to use for the results.
- All Superinterfaces:
ExecutableFindByQueryOperation.TerminatingFindByQuery<T>, OneAndAll<T>, WithQuery<T>
- All Known Subinterfaces:
ExecutableFindByQueryOperation.ExecutableFindByQuery<T>, ExecutableFindByQueryOperation.FindByQueryConsistentWith<T>, ExecutableFindByQueryOperation.FindByQueryInCollection<T>, ExecutableFindByQueryOperation.FindByQueryInScope<T>, ExecutableFindByQueryOperation.FindByQueryWithConsistency<T>, ExecutableFindByQueryOperation.FindByQueryWithDistinct<T>, ExecutableFindByQueryOperation.FindByQueryWithOptions<T>, ExecutableFindByQueryOperation.FindByQueryWithProjecting<T>, ExecutableFindByQueryOperation.FindByQueryWithProjection<T>
- Enclosing interface:
ExecutableFindByQueryOperation
public static interface ExecutableFindByQueryOperation.FindByQueryWithQuery<T>
extends ExecutableFindByQueryOperation.TerminatingFindByQuery<T>, WithQuery<T>
Fluent methods to specify the query
- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionSet the filter for the query to be used.matching(QueryCriteriaDefinition criteria) Set the filtercriteriato be used.Methods inherited from interface ExecutableFindByQueryOperation.TerminatingFindByQuery
all, count, exists, first, firstValue, one, oneValue, stream
-
Method Details
-
matching
Set the filter for the query to be used.- Specified by:
matchingin interfaceWithQuery<T>- Parameters:
query- must not be null.- Throws:
IllegalArgumentException- if query is null.
-
matching
default ExecutableFindByQueryOperation.TerminatingFindByQuery<T> matching(QueryCriteriaDefinition criteria) Set the filtercriteriato be used.- Specified by:
matchingin interfaceWithQuery<T>- Parameters:
criteria- must not be null.- Returns:
- new instance of
ExecutableFindByQueryOperation.ExecutableFindByQuery. - Throws:
IllegalArgumentException- if criteria is null.
-