About CriteriaBuilder

191-200 of 200Refresh
Manual
26

SELECT clause (JPQL / Criteria API)

). The CriteriaBuilder interface provides three factory methods for building CompoundSelection instances - array, tuple and construct. CriteriaBuilder's array The following JPQL query: SELECT c.name, c ... : " + result[1]); } CriteriaBuilder's tuple The Tuple interface can be used as a clean alternative
Manual
17

Date and Time in JPQL and Criteria Queries

in Criteria Queries The CriteriaBuilder interface provides three factory methods for building date ... by using the generic CriteriaBuilder's function method, as follow: // Create expressions
Manual
17

Literals in JPQL and Criteria Queries

The CriteriaBuilder interface provides two factory methods for building literal expressions. Ordinary ... method: Expression n = cb.literal(null); or by a special CriteriaBuilder's method, nullLiteral
Manual
17

Logical Operators in JPQL and Criteria API

The CriteriaBuilder interface provides factory methods that take two Expression operands (including ... : Predicate p5 = cb.not(isInUN); Predicate p6 = isLarge.not(); The CriteriaBuilder's not method
Manual
12

Collections in JPQL and Criteria Queries

criteria query expressions. The CriteriaBuilder interface provides factory methods for building
Manual
12

Comparison in JPQL and Criteria API

above) are available also as JPA criteria query expressions. The CriteriaBuilder interface provides factory methods
JPA Doc
12

Criteria Query Selection and Results

). The CriteriaBuilder's asc and desc methods take an expression and return an ascending or descending Order
Manual
12

GROUP BY and HAVING clauses

"))); q.groupBy(c.get("currency")); g.having(cb.gt(cb.count(c), 1)); The CriteriaBuilder
Manual
12

Numbers in JPQL and Criteria Queries

expressions. The CriteriaBuilder interface provides factory methods for building these expressions, as
Manual
12

ORDER BY clause (JPQL / Criteria API)

) or descending (DESC). The CriteriaBuilder's asc and desc methods (which are demonstrated