About CriteriaQuery

11-20 of 85Refresh
JPA Doc
62

having(restriction)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery having(   Expression restriction ) Specify a restriction over the groups of the query. Replaces the previous having restriction(s), if any. This method only overrides the return type of the corresponding AbstractQuery method
JPA Doc
62

having(restrictions)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery having(   Predicate... restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s), if any. If no restrictions
JPA Doc
62

orderBy(o)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery orderBy(   List o ) Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering, if any
JPA Doc
62

orderBy(o)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery orderBy(   Order... o ) Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering, if any, is simply
JPA Doc
62

where(restriction)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery where(   Expression restriction ) Modify the query to restrict the query result according to the specified boolean expression. Replaces the previously added restriction(s), if any. This method only overrides the return type
JPA Doc
62

where(restrictions)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery where(   Predicate... restrictions ) Modify the query to restrict the query result according to the conjunction of the specified restriction predicates. Replaces the previously added restriction(s), if any. If no restrictions
JPA Doc
59

getOrderList()

Method javax.persistence.criteria.CriteriaQuery List getOrderList() Return the ordering expressions in order of precedence. Returns empty list if no ordering expressions have been specified. Modifications to the list do not affect the query. Returns: the list of ordering expressions Since: JPA 2.0
JPA Doc
59

getParameters()

Method javax.persistence.criteria.CriteriaQuery Set> getParameters() Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query. Returns: the query parameters Since: JPA 2.0
Manual
47

SELECT clause (JPQL / Criteria API)

.currency FROM Country c can be built as a criteria query as follows: CriteriaQuery q ... .capital.name FROM Country c can be defined using the criteria API as follows: CriteriaQuery ... to Object[]: CriteriaQuery q = cb.createTupleQuery(); Root c = q.from(Country
Manual
37

FROM clause (JPQL / Criteria API)

(and its sub interfaces). Criteria Query Roots The CriteriaQuery's from method serves as a factory of Root ... the following code: CriteriaQuery q = cb.createQuery(Country.class); Root c1 = q.from ... other CriteriaQuery methods - invocation of the from method does not override a previous invocation