Interface PredicateBuilder

All Superinterfaces:
BasePredicateBuilder<PredicateBuilder>

public interface PredicateBuilder extends 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 Details

    • or

      Starts a PredicateOrBuilder 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 type T.
      Returns:
      The or predicate builder for the where clause
    • setExpression

      PredicateBuilder setExpression(String expression)
      Sets the given expression as expression for the where clause.
      Parameters:
      expression - The where expression
      Returns:
      The builder
    • setExpressionSubqueries

      MultipleSubqueryInitiator<PredicateBuilder> setExpressionSubqueries(String expression)
      Starts a MultipleSubqueryInitiator for expression of the where clause.

      All occurrences of subsequently defined subqueryAliases in expression 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