Example usage for Java javax.persistence.criteria CriteriaQuery fields, constructors, methods, implement or subclass
The text is from its open source code.
CriteriaQuery | distinct(boolean distinct) Specify whether duplicate query results will be eliminated. |
Root | from(Class Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots. |
Class> | getClass() Returns the runtime class of this Object . |
List | getGroupList() Return a list of the grouping expressions. |
Predicate | getGroupRestriction() Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified. |
List | getOrderList() Return the ordering expressions in order of precedence. |
Set | getParameters() Return the parameters of the query. |
Predicate | getRestriction() Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified. |
Class | getResultType() Return the result type of the query or subquery. |
Set | getRoots() Return the query roots. |
Selection | getSelection() Return the selection of the query, or null if no selection has been set. |
CriteriaQuery | groupBy(Expression>... grouping) Specify the expressions that are used to form groups over the query results. |
CriteriaQuery | groupBy(List Specify the expressions that are used to form groups over the query results. |
CriteriaQuery | having(Expression Specify a restriction over the groups of the query. |
CriteriaQuery | having(Predicate... restrictions) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. |
boolean | isDistinct() Return whether duplicate query results must be eliminated or retained. |
CriteriaQuery | multiselect(Selection>... selections) Specify the selection items that are to be returned in the query result. |
CriteriaQuery | multiselect(List Specify the selection items that are to be returned in the query result. |
CriteriaQuery | orderBy(Order... o) Specify the ordering expressions that are used to order the query results. |
CriteriaQuery | orderBy(List Specify the ordering expressions that are used to order the query results. |
CriteriaQuery | select(Selection extends T> selection) Specify the item that is to be returned in the query result. |
Subquery | subquery(Class type) Create a subquery of the query. |
String | toString() Returns a string representation of the object. |
CriteriaQuery | where(Expression Modify the query to restrict the query result according to the specified boolean expression. |
CriteriaQuery | where(Predicate... restrictions) Modify the query to restrict the query result according to the conjunction of the specified restriction predicates. |