Criteria Query From Elements
The interfaces in this group are in use for setting a criteria query FROM clause.
Criteria Query Variables
The FROM clause in JPA queries (as in SQL) defines the query variables. Query variables are represented in criteria queries by descendant interfaces of the From
interface:
Range variables (bound by an entity class) are represented by the Root
subinterface:
Join variables (bound by an attribute of a preceding variable in the FROM clause) are represented by the Join
subinterface and its descendant interfaces:
- javax.persistence.criteria.Join
- JPA Interface - javax.persistence.criteria.PluralJoin
- JPA Interface - javax.persistence.criteria.CollectionJoin
- JPA Interface - javax.persistence.criteria.SetJoin
- JPA Interface - javax.persistence.criteria.ListJoin
- JPA Interface - javax.persistence.criteria.MapJoin
- JPA Interface - javax.persistence.criteria.JoinType - JPA Enum
See the FROM in Criteria Queries section for more details and examples.
Join Fetch Elements
Join Fetch is managed in criteria queries by the following interfaces:
- javax.persistence.criteria.Fetch
- JPA Interface - javax.persistence.criteria.FetchParent
- JPA Interface
See the FROM in Criteria Queries section for more details and an example.