Interface JpqlQueryBuilder.Predicate
- Enclosing class:
- JpqlQueryBuilder
public static interface JpqlQueryBuilder.Predicate
WHERE
predicate.-
Method Summary
Modifier and TypeMethodDescriptiondefault JpqlQueryBuilder.Predicate
and
(JpqlQueryBuilder.Predicate other) AND
-concatenate this predicate withother
.default JpqlQueryBuilder.Predicate
nest()
Wrap this predicate with parenthesis(…)
to nest it without affecting AND/OR concatenation precedence.default JpqlQueryBuilder.Predicate
or
(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
other
using 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
other
using 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.
-