N - The type of the next step, returned after a predicate is defined.H - The type of hits for the created query.PDF - The type of factory used to create predicates in where(Function).public interface SearchQueryWhereStep<N extends SearchQueryOptionsStep<?,H,?,?,?>,H,PDF extends SearchPredicateFactory>
| Modifier and Type | Method and Description |
|---|---|
default N |
predicate(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
Deprecated.
Use
where(Function) instead. |
default N |
predicate(SearchPredicate predicate)
Deprecated.
Use
where(SearchPredicate) instead. |
N |
where(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
Set the predicate for this query.
|
N |
where(SearchPredicate predicate)
Set the predicate for this query.
|
N where(SearchPredicate predicate)
predicate - A SearchPredicate object obtained from the search scope.N where(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
predicateContributor - A function that will use the factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
Should generally be a lambda expression.@Deprecated default N predicate(SearchPredicate predicate)
where(SearchPredicate) instead.predicate - A SearchPredicate object obtained from the search scope.@Deprecated default N predicate(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
where(Function) instead.predicateContributor - A function that will use the factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
Should generally be a lambda expression.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.