Interface WhereBuilder<T extends WhereBuilder<T>>

Type Parameters:
T - The concrete builder type
All Superinterfaces:
BaseWhereBuilder<T>
All Known Subinterfaces:
BaseCriteriaBuilder<T,X>, BaseCTECriteriaBuilder<X>, BaseDeleteCriteriaBuilder<T,X>, BaseFromQueryBuilder<T,X>, BaseInsertCriteriaBuilder<T,X>, BaseModificationCriteriaBuilder<X>, BaseQueryBuilder<T,X>, BaseSubqueryBuilder<X>, BaseUpdateCriteriaBuilder<T,X>, CriteriaBuilder<T>, DeleteCriteriaBuilder<T>, FullQueryBuilder<T,X>, FullSelectCTECriteriaBuilder<X>, InsertCriteriaBuilder<T>, LeafOngoingSetOperationCriteriaBuilder<X>, LeafOngoingSetOperationCTECriteriaBuilder<X>, LeafOngoingSetOperationSubqueryBuilder<X>, ModificationCriteriaBuilder<X>, OngoingSetOperationCriteriaBuilder<T,Y>, OngoingSetOperationCTECriteriaBuilder<T,Y>, OngoingSetOperationSubqueryBuilder<T,Y>, PaginatedCriteriaBuilder<T>, QueryBuilder<T,X>, ReturningDeleteCriteriaBuilder<T,X>, ReturningInsertCriteriaBuilder<T,X>, ReturningModificationCriteriaBuilder<X,Y>, ReturningUpdateCriteriaBuilder<T,X>, SelectBaseCTECriteriaBuilder<X>, SelectCTECriteriaBuilder<X>, SelectRecursiveCTECriteriaBuilder<X>, StartOngoingSetOperationCriteriaBuilder<X,Y>, StartOngoingSetOperationCTECriteriaBuilder<X,Y>, StartOngoingSetOperationSubqueryBuilder<X,Y>, SubqueryBuilder<T>, UpdateCriteriaBuilder<T>

public interface WhereBuilder<T extends WhereBuilder<T>> extends BaseWhereBuilder<T>
An interface for builders that support filtering. This is related to the fact, that a query builder supports where clauses.
Since:
1.0.0
Author:
Christian Beikov
  • Method Details

    • whereOr

      WhereOrBuilder<T> whereOr()
      Starts a WhereOrBuilder 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
    • setWhereExpression

      T setWhereExpression(String expression)
      Sets the given expression as expression for the where clause.
      Parameters:
      expression - The where expression
      Returns:
      The builder
      Since:
      1.2.0
    • setWhereExpressionSubqueries

      MultipleSubqueryInitiator<T> setWhereExpressionSubqueries(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
      Since:
      1.2.0
    • where

      Starts a PredicateBuilder for the where clause.
      Returns:
      The predicate builder for the where clause
      Since:
      1.6.8