Interface JpqlQueryBuilder.Predicate
- Enclosing class:
JpqlQueryBuilder
public static interface JpqlQueryBuilder.Predicate
WHERE predicate.- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptiondefault JpqlQueryBuilder.Predicateand(JpqlQueryBuilder.Predicate other) AND-concatenate this predicate withother.default JpqlQueryBuilder.Predicatenest()Wrap this predicate with parenthesis(…)to nest it without affecting AND/OR concatenation precedence.default JpqlQueryBuilder.Predicateor(JpqlQueryBuilder.Predicate other) OR-concatenate this predicate withother.render(JpqlQueryBuilder.RenderContext context) Render the predicate givenJpqlQueryBuilder.RenderContext.
-
Method Details
-
render
Render the predicate givenJpqlQueryBuilder.RenderContext.- Parameters:
context-- Returns:
-
or
@Contract("_ -> new") @CheckReturnValue default JpqlQueryBuilder.Predicate or(JpqlQueryBuilder.Predicate other) OR-concatenate this predicate withother.- Parameters:
other-- Returns:
- a composed predicate combining this and
otherusing the OR operator.
-
and
@Contract("_ -> new") @CheckReturnValue default JpqlQueryBuilder.Predicate and(JpqlQueryBuilder.Predicate other) AND-concatenate this predicate withother.- Parameters:
other-- Returns:
- a composed predicate combining this and
otherusing the AND operator.
-
nest
Wrap this predicate with parenthesis(…)to nest it without affecting AND/OR concatenation precedence.- Returns:
- a nested variant of this predicate.
-