Java javax.persistence.criteria CriteriaQuery fields, constructors, methods, implement or subclass

Example usage for Java javax.persistence.criteria CriteriaQuery fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.persistence.criteria CriteriaQuery.

The text is from its open source code.

Method

CriteriaQuerydistinct(boolean distinct)
Specify whether duplicate query results will be eliminated.
Rootfrom(Class entityClass)
Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots.
ClassgetClass()
Returns the runtime class of this Object .
List>getGroupList()
Return a list of the grouping expressions.
PredicategetGroupRestriction()
Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified.
ListgetOrderList()
Return the ordering expressions in order of precedence.
Set>getParameters()
Return the parameters of the query.
PredicategetRestriction()
Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.
ClassgetResultType()
Return the result type of the query or subquery.
Set>getRoots()
Return the query roots.
SelectiongetSelection()
Return the selection of the query, or null if no selection has been set.
CriteriaQuerygroupBy(Expression... grouping)
Specify the expressions that are used to form groups over the query results.
CriteriaQuerygroupBy(List> grouping)
Specify the expressions that are used to form groups over the query results.
CriteriaQueryhaving(Expression restriction)
Specify a restriction over the groups of the query.
CriteriaQueryhaving(Predicate... restrictions)
Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates.
booleanisDistinct()
Return whether duplicate query results must be eliminated or retained.
CriteriaQuerymultiselect(Selection... selections)
Specify the selection items that are to be returned in the query result.
CriteriaQuerymultiselect(List> selectionList)
Specify the selection items that are to be returned in the query result.
CriteriaQueryorderBy(Order... o)
Specify the ordering expressions that are used to order the query results.
CriteriaQueryorderBy(List o)
Specify the ordering expressions that are used to order the query results.
CriteriaQueryselect(Selection selection)
Specify the item that is to be returned in the query result.
Subquerysubquery(Class type)
Create a subquery of the query.
StringtoString()
Returns a string representation of the object.
CriteriaQuerywhere(Expression restriction)
Modify the query to restrict the query result according to the specified boolean expression.
CriteriaQuerywhere(Predicate... restrictions)
Modify the query to restrict the query result according to the conjunction of the specified restriction predicates.