Interface JpqlQueryBuilder.Predicate
- All Superinterfaces:
JpqlQueryBuilder.Renderable
- Enclosing class:
JpqlQueryBuilder
WHERE predicate.- Since:
- 4.0
- Author:
- Mark Paluch, Choi Wang Gyu
-
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.Methods inherited from interface JpqlQueryBuilder.Renderable
render
-
Method Details
-
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.
-