Package com.blazebit.persistence
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 Summary
Modifier and Type Method Description T
setWhereExpression(String expression)
Sets the given expression as expression for the where clause.MultipleSubqueryInitiator<T>
setWhereExpressionSubqueries(String expression)
Starts aMultipleSubqueryInitiator
for expression of the where clause.WhereOrBuilder<T>
whereOr()
Starts aWhereOrBuilder
which is a predicate consisting only of disjunctiv connected predicates.Methods inherited from interface com.blazebit.persistence.BaseWhereBuilder
where, whereCase, whereExists, whereExists, whereExpression, whereExpressionSubqueries, whereNotExists, whereNotExists, whereSimpleCase, whereSubqueries, whereSubquery, whereSubquery, whereSubquery, whereSubquery
-
Method Details
-
whereOr
WhereOrBuilder<T> whereOr()Starts aWhereOrBuilder
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
-
setWhereExpression
Sets the given expression as expression for the where clause.- Parameters:
expression
- The where expression- Returns:
- The builder
- Since:
- 1.2.0
-
setWhereExpressionSubqueries
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
- Since:
- 1.2.0
-