Interface SearchQueryWhereStep<N extends SearchQueryOptionsStep<?,H,LOS,?,?>,H,LOS,PDF extends SearchPredicateFactory>
-
- Type Parameters:
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 inwhere(Function).LOS- The type of the initial step of the loading options definition DSL accessible throughSearchQueryOptionsStep.loading(Consumer).
- All Known Subinterfaces:
SearchQuerySelectStep<N,R,E,LOS,PJF,PDF>
- All Known Implementing Classes:
AbstractDelegatingSearchQuerySelectStep,AbstractExtendedSearchQueryOptionsStep,AbstractSearchQueryOptionsStep,AbstractSearchQuerySelectStep
public interface SearchQueryWhereStep<N extends SearchQueryOptionsStep<?,H,LOS,?,?>,H,LOS,PDF extends SearchPredicateFactory>The step in a query definition where the predicate, i.e. the "WHERE" clause, can be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default Npredicate(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)Deprecated.Usewhere(Function)instead.default Npredicate(SearchPredicate predicate)Deprecated.Usewhere(SearchPredicate)instead.Nwhere(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)Set the predicate for this query.Nwhere(SearchPredicate predicate)Set the predicate for this query.
-
-
-
Method Detail
-
where
N where(SearchPredicate predicate)
Set the predicate for this query.- Parameters:
predicate- ASearchPredicateobject obtained from the search scope.- Returns:
- The next step.
-
where
N where(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
Set the predicate for this query.- Parameters:
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.- Returns:
- The next step.
-
predicate
@Deprecated default N predicate(SearchPredicate predicate)
Deprecated.Usewhere(SearchPredicate)instead.Set the predicate for this query.- Parameters:
predicate- ASearchPredicateobject obtained from the search scope.- Returns:
- The next step.
-
predicate
@Deprecated default N predicate(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
Deprecated.Usewhere(Function)instead.Set the predicate for this query.- Parameters:
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.- Returns:
- The next step.
-
-