- Type Parameters:
T- the type of the table being queried.R- the type of the result.ID- the type of the primary key.
- Enclosing class:
QueryBuilder<T extends Record,R, ID>
public static interface QueryBuilder.PredicateBuilder<T extends Record,R,ID>
A builder for constructing the predicates of the WHERE clause of the query.
-
Method Summary
Modifier and TypeMethodDescriptionand(QueryBuilder.PredicateBuilder<?, ?, ?> predicate) Adds a predicate to the WHERE clause using an AND condition.or(QueryBuilder.PredicateBuilder<?, ?, ?> predicate) Adds a predicate to the WHERE clause using an OR condition.
-
Method Details
-
and
Adds a predicate to the WHERE clause using an AND condition.This method combines the specified predicate with existing predicates using an AND operation, ensuring that all added conditions must be true.
- Parameters:
predicate- the predicate to add.- Returns:
- the predicate builder.
-
or
Adds a predicate to the WHERE clause using an OR condition.This method combines the specified predicate with existing predicates using an OR operation, allowing any of the added conditions to be true.
- Parameters:
predicate- the predicate to add.- Returns:
- the predicate builder.
-