Class QueryBuilderImpl.PredicateBuilderImpl<TX extends Data,RX,IDX>
- All Implemented Interfaces:
PredicateBuilder<TX,RX, IDX>
- Enclosing class:
QueryBuilderImpl<T extends Data,R, ID>
PredicateBuilderImpl relies on preview features of the Java platform:
PredicateBuilderImplrefers to one or more preview APIs:StringTemplate.
-
Method Summary
Modifier and TypeMethodDescriptionand(StringTemplatePREVIEW template) Adds a predicate to the WHERE clause using an AND condition.and(PredicateBuilder<? extends TX, ?, ?> predicate) Adds a predicate to the WHERE clause using an AND condition.static <TX extends Data,RX, IDX>
PredicateBuilder<TX, RX, IDX> of(st.orm.core.template.PredicateBuilder<TX, RX, IDX> core) Returns the predicate builder of the Java API over the given core predicate builder.or(StringTemplatePREVIEW template) Adds a predicate to the WHERE clause using an OR condition.or(PredicateBuilder<? extends TX, ?, ?> predicate) Adds a predicate to the WHERE clause using an OR condition.
-
Method Details
-
of
public static <TX extends Data,RX, PredicateBuilder<TX,IDX> RX, ofIDX> (st.orm.core.template.PredicateBuilder<TX, RX, IDX> core) Returns the predicate builder of the Java API over the given core predicate builder.- Type Parameters:
TX- the type of the table being queried.RX- the type of the result.IDX- the type of the primary key.- Parameters:
core- the core predicate builder.- Returns:
- the predicate builder.
-
and
Description copied from interface:PredicateBuilderAdds 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. The predicate inherits the query root: a join widens the root, admitting predicates that reference any entity in the query.
-
and
Description copied from interface:PredicateBuilderAdds 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.
-
or
Description copied from interface:PredicateBuilderAdds 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. The predicate inherits the query root: a join widens the root, admitting predicates that reference any entity in the query.
-
or
Description copied from interface:PredicateBuilderAdds a predicate to the WHERE clause using an OR condition.This method combines the specified predicate with existing predicates using an OR operation, ensuring that all added conditions must be true.
-
PredicateBuilderImplwhen preview features are enabled.