Package com.blazebit.persistence
Interface PredicateBuilder
- All Superinterfaces:
BasePredicateBuilder<PredicateBuilder>
An interface for builders that support filtering. This is related to the
fact, that a query builder supports where clauses.
- Since:
- 1.6.8
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionor()
Starts aPredicateOrBuilder
which is a predicate consisting only of disjunctiv connected predicates.setExpression
(String expression) Sets the given expression as expression for the where clause.setExpressionSubqueries
(String expression) Starts aMultipleSubqueryInitiator
for expression of the where clause.Methods inherited from interface com.blazebit.persistence.BasePredicateBuilder
exists, exists, expression, notExists, notExists, selectCase, selectCase, subqueries, subquery, subquery, subquery, subquery, withExpression, withExpressionSubqueries
-
Method Details
-
or
Starts aPredicateOrBuilder
which is a predicate consisting only of disjunctiv connected predicates. When the builder finishes, the predicate is added to the parent predicate container represented by the typeT
.- Returns:
- The or predicate builder for the where clause
-
setExpression
Sets the given expression as expression for the where clause.- Parameters:
expression
- The where expression- Returns:
- The builder
-
setExpressionSubqueries
Starts aMultipleSubqueryInitiator
for expression of the where clause.All occurrences of subsequently defined
subqueryAlias
es inexpression
will be replaced by the respective subquery. When the builder finishes, the resulting expression is used as expression for the where clause.- Parameters:
expression
- The where expression- Returns:
- The subquery initiator for building multiple subqueries for their respective subqueryAliases
-