Uses of Interface
javax.persistence.criteria.CriteriaQuery
Packages that use CriteriaQuery
-
Uses of CriteriaQuery in javax.persistence
Methods in javax.persistence with parameters of type CriteriaQueryModifier and TypeMethodDescription<T> TypedQuery
<T> EntityManager.createQuery
(CriteriaQuery<T> criteriaQuery) Create an instance ofTypedQuery
for executing a criteria query. -
Uses of CriteriaQuery in javax.persistence.criteria
Methods in javax.persistence.criteria that return CriteriaQueryModifier and TypeMethodDescriptionCriteriaBuilder.createQuery()
Create aCriteriaQuery
object.<T> CriteriaQuery
<T> CriteriaBuilder.createQuery
(Class<T> resultClass) Create aCriteriaQuery
object with the specified result type.CriteriaBuilder.createTupleQuery()
Create aCriteriaQuery
object that returns a tuple of objects as its result.CriteriaQuery.distinct
(boolean distinct) Specify whether duplicate query results will be eliminated.CriteriaQuery.groupBy
(List<Expression<?>> grouping) Specify the expressions that are used to form groups over the query results.CriteriaQuery.groupBy
(Expression<?>... grouping) Specify the expressions that are used to form groups over the query results.CriteriaQuery.having
(Expression<Boolean> restriction) Specify a restriction over the groups of the query.Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates.CriteriaQuery.multiselect
(List<Selection<?>> selectionList) Specify the selection items that are to be returned in the query result.CriteriaQuery.multiselect
(Selection<?>... selections) Specify the selection items that are to be returned in the query result.Specify the ordering expressions that are used to order the query results.Specify the ordering expressions that are used to order the query results.Specify the item that is to be returned in the query result.CriteriaQuery.where
(Expression<Boolean> restriction) Modify the query to restrict the query result according to the specified boolean expression.Modify the query to restrict the query result according to the conjunction of the specified restriction predicates.