Home » Search

About Criteria API

1-10 of 200Refresh
Manual
333

JPA Criteria API Queries

The JPA Criteria API provides an alternative way for defining JPA queries, which is mainly useful for building dynamic queries whose exact structure is only known at runtime. JPA Criteria API vs JPQL ... the criteria API is that errors can be detected earlier, during compilation rather than at runtime
Manual
313

SELECT clause (JPQL / Criteria API)

the SELECT clause content (overriding previously set SELECT content if any). Every valid criteria API expression can be used as selection, because all the criteria API expressions are represented by a sub ... .capital.name FROM Country c can be defined using the criteria API as follows: CriteriaQuery
Manual
298

Paths and Types in JPQL and Criteria API

as one group, and COUNT calculates its size). Criteria Query Paths and Types Paths and navigations are represented in the JPA Criteria API by the Path interface and by its subinterfaces (From, Root ... type method. For example, the following criteria expression checks if the type of a specified entity e
Manual
298

WHERE clause (JPQL / Criteria API)

query: SELECT c FROM Country c WHERE c.population > :p can be built by using the criteria query API ... in other JPQL query clauses but they are especially dominant in the WHERE clause. WHERE in Criteria ... FROM Country WHERE c.population > :p AND c.area < :a can be built as a criteria query as follows
Manual
297

FROM clause (JPQL / Criteria API)

, abs, Abs and aBs are all invalid variable names. FROM and JOIN in Criteria Queries FROM query identification variables are represented in criteria queries by sub interfaces of From: Range variables ... (and its sub interfaces). Criteria Query Roots The CriteriaQuery's from method serves as a factory of Root
Manual
297

ORDER BY clause (JPQL / Criteria API)

Country c ORDER BY c.currency, c.population DESC can be built using the criteria query API as ... the result order would be undefined. ORDER BY in Criteria Queries The CriteriaQuery interface ... "))); Unlike other methods for setting criteria query clauses - the orderBy method takes a variable number
Manual
290

Comparison in JPQL and Criteria API

> :max Criteria Query Comparison JPQL comparison operators (which are described above) are available also as JPA criteria query expressions. The CriteriaBuilder interface provides factory methods ... of every one of these methods is a criteria expression. The second argument (and the third argument in between
Manual
288

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and in JPA criteria queries enable composition of complex JPQL boolean ... part of its JDO support. Criteria Query Logical Operators Boolean Expressions and Predicates Boolean expressions are represented in criteria queries by Expression and descendant interfaces
JPA Doc
175

Criteria Query Selection and Results

The JPA Criteria API interfaces in this group are in use for setting the SELECT and ORDER BY ... clause in a criteria query is represented by Selection: Because Selection is a super interface of Expression, any criteria expression can be used as the SELECT clause content. Multiple selection
Manual
171

Chapter 4 - JPA Queries (JPQL / Criteria)

well as how to use the JPA Criteria API, which provides an alternative way for building queries in JPA, based on JPQL. The first section describes the API that JPA provides for using dynamic and static ... (and a criteria query) is explained by describing the main clauses of JPQL queries (SELECT, FROM, WHERE, GROUP