public class CriteriaQueryImpl<T> extends AbstractQueryImpl<T> implements javax.persistence.criteria.CriteriaQuery<T>
Purpose: Contains the implementation of the CriteriaQuery interface of the JPA criteria API.
Description: This is the container class for the components that define a query.
CriteriaQuery,
Serialized Form| Constructor and Description |
|---|
CriteriaQueryImpl(javax.persistence.metamodel.Metamodel metamodel,
org.eclipse.persistence.internal.jpa.querydef.AbstractQueryImpl.ResultType queryResult,
java.lang.Class result,
CriteriaBuilderImpl queryBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJoin(FromImpl from) |
javax.persistence.criteria.CriteriaQuery<T> |
distinct(boolean distinct)
Specify whether duplicate query results will be eliminated.
|
java.util.List<javax.persistence.criteria.Order> |
getOrderList()
Return the ordering expressions in order of precedence.
|
javax.persistence.criteria.Selection<T> |
getSelection()
Return the selection item of the query.
|
javax.persistence.criteria.CriteriaQuery<T> |
groupBy(javax.persistence.criteria.Expression<?>... grouping)
Specify the expressions that are used to form groups over the query
results.
|
javax.persistence.criteria.CriteriaQuery<T> |
groupBy(java.util.List<javax.persistence.criteria.Expression<?>> grouping)
Specify the expressions that are used to form groups over the query
results.
|
javax.persistence.criteria.CriteriaQuery<T> |
having(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
Specify a restriction over the groups of the query.
|
javax.persistence.criteria.CriteriaQuery<T> |
having(javax.persistence.criteria.Predicate... restrictions)
Specify restrictions over the groups of the query according the
conjunction of the specified restriction predicates.
|
javax.persistence.criteria.CriteriaQuery<T> |
multiselect(java.util.List<javax.persistence.criteria.Selection<?>> selectionList)
Specify the items that are to be returned in the query result.
|
javax.persistence.criteria.CriteriaQuery<T> |
multiselect(javax.persistence.criteria.Selection<?>... selections)
Specify the items that are to be returned in the query result.
|
javax.persistence.criteria.CriteriaQuery<T> |
orderBy(java.util.List<javax.persistence.criteria.Order> o)
Specify the ordering expressions that are used to order the query
results.
|
javax.persistence.criteria.CriteriaQuery<T> |
orderBy(javax.persistence.criteria.Order... o)
Specify the ordering expressions that are used to order the query
results.
|
void |
populateAndSetConstructorSelection(ConstructorSelectionImpl constructorSelection,
java.lang.Class<?> class1,
javax.persistence.criteria.Selection<?>... selections)
This method will set this queryImpl's selection to a ConstructorSelectionImpl, creating a new
instance or populating the one passed in as necessary.
|
javax.persistence.criteria.CriteriaQuery<T> |
select(javax.persistence.criteria.Selection<? extends T> selection)
Specify the item that is to be returned in the query result.
|
DatabaseQuery |
translate()
Translates from the criteria query to a EclipseLink Database Query.
|
javax.persistence.criteria.CriteriaQuery<T> |
where(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
Modify the query to restrict the query result according to the specified
boolean expression.
|
javax.persistence.criteria.CriteriaQuery<T> |
where(javax.persistence.criteria.Predicate... restrictions)
Modify the query to restrict the query result according to the
conjunction of the specified restriction predicates.
|
from, from, getGroupList, getGroupRestriction, getRoots, isDistinctaddParameter, getParameters, getRestriction, getResultType, internalFrom, internalFrom, subqueryequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic CriteriaQueryImpl(javax.persistence.metamodel.Metamodel metamodel,
org.eclipse.persistence.internal.jpa.querydef.AbstractQueryImpl.ResultType queryResult,
java.lang.Class result,
CriteriaBuilderImpl queryBuilder)
public javax.persistence.criteria.CriteriaQuery<T> select(javax.persistence.criteria.Selection<? extends T> selection)
select in interface javax.persistence.criteria.CriteriaQuery<T>selection - selection specifying the item that is to be returned in the
query resultpublic javax.persistence.criteria.CriteriaQuery<T> multiselect(javax.persistence.criteria.Selection<?>... selections)
multiselect in interface javax.persistence.criteria.CriteriaQuery<T>selections - expressions specifying the items that are to be returned in
the query resultpublic javax.persistence.criteria.CriteriaQuery<T> multiselect(java.util.List<javax.persistence.criteria.Selection<?>> selectionList)
multiselect in interface javax.persistence.criteria.CriteriaQuery<T>selectionList - list of expressions specifying the items that to be are
returned in the query resultpublic javax.persistence.criteria.CriteriaQuery<T> where(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
where in interface javax.persistence.criteria.AbstractQuery<T>where in interface javax.persistence.criteria.CriteriaQuery<T>where in class AbstractQueryImpl<T>restriction - a simple or compound boolean expressionpublic javax.persistence.criteria.CriteriaQuery<T> where(javax.persistence.criteria.Predicate... restrictions)
where in interface javax.persistence.criteria.AbstractQuery<T>where in interface javax.persistence.criteria.CriteriaQuery<T>where in class AbstractQueryImpl<T>restrictions - zero or more restriction predicatespublic javax.persistence.criteria.CriteriaQuery<T> groupBy(javax.persistence.criteria.Expression<?>... grouping)
groupBy in interface javax.persistence.criteria.AbstractQuery<T>groupBy in interface javax.persistence.criteria.CriteriaQuery<T>groupBy in class AbstractQueryImpl<T>grouping - zero or more grouping expressionspublic javax.persistence.criteria.CriteriaQuery<T> groupBy(java.util.List<javax.persistence.criteria.Expression<?>> grouping)
groupBy in interface javax.persistence.criteria.AbstractQuery<T>groupBy in interface javax.persistence.criteria.CriteriaQuery<T>groupBy in class AbstractQueryImpl<T>grouping - list of zero or more grouping expressionspublic javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
having in interface javax.persistence.criteria.AbstractQuery<T>having in interface javax.persistence.criteria.CriteriaQuery<T>having in class AbstractQueryImpl<T>restriction - a simple or compound boolean expressionpublic javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Predicate... restrictions)
having in interface javax.persistence.criteria.AbstractQuery<T>having in interface javax.persistence.criteria.CriteriaQuery<T>having in class AbstractQueryImpl<T>restrictions - zero or more restriction predicatespublic javax.persistence.criteria.CriteriaQuery<T> orderBy(javax.persistence.criteria.Order... o)
orderBy in interface javax.persistence.criteria.CriteriaQuery<T>o - zero or more ordering expressionspublic javax.persistence.criteria.CriteriaQuery<T> orderBy(java.util.List<javax.persistence.criteria.Order> o)
orderBy in interface javax.persistence.criteria.CriteriaQuery<T>o - list of zero or more ordering expressionspublic void populateAndSetConstructorSelection(ConstructorSelectionImpl constructorSelection, java.lang.Class<?> class1, javax.persistence.criteria.Selection<?>... selections) throws java.lang.IllegalArgumentException
class1 - selections - java.lang.IllegalArgumentExceptionpublic javax.persistence.criteria.CriteriaQuery<T> distinct(boolean distinct)
distinct in interface javax.persistence.criteria.AbstractQuery<T>distinct in interface javax.persistence.criteria.CriteriaQuery<T>distinct in class AbstractQueryImpl<T>distinct - boolean value specifying whether duplicate results must be
eliminated from the query result or whether they must be
retainedpublic void addJoin(FromImpl from)
addJoin in class AbstractQueryImpl<T>public java.util.List<javax.persistence.criteria.Order> getOrderList()
getOrderList in interface javax.persistence.criteria.CriteriaQuery<T>public javax.persistence.criteria.Selection<T> getSelection()
getSelection in interface javax.persistence.criteria.AbstractQuery<T>public DatabaseQuery translate()
translate in class CommonAbstractCriteriaImpl<T>EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference