public abstract class AbstractQueryImpl<T> extends CommonAbstractCriteriaImpl<T> implements javax.persistence.criteria.AbstractQuery<T>, java.io.Serializable
Purpose: Contains the implementation of the AbstractQuery interface of the JPA criteria API.
Description: This is the container class for the components that define a query. This is the superclass of both the CriteriaQuery and the SubQuery.
CriteriaQuery
,
Serialized FormConstructor and Description |
---|
AbstractQueryImpl(javax.persistence.metamodel.Metamodel metamodel,
org.eclipse.persistence.internal.jpa.querydef.AbstractQueryImpl.ResultType queryResult,
CriteriaBuilderImpl queryBuilder,
java.lang.Class<T> resultType) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addJoin(FromImpl join) |
javax.persistence.criteria.AbstractQuery<T> |
distinct(boolean distinct)
Specify whether duplicate query results will be eliminated.
|
<X> javax.persistence.criteria.Root<X> |
from(java.lang.Class<X> entityClass)
Add a query root corresponding to the given entity, forming a Cartesian
product with any existing roots.
|
<X> javax.persistence.criteria.Root<X> |
from(javax.persistence.metamodel.EntityType<X> entity)
Add a query root corresponding to the given entity, forming a Cartesian
product with any existing roots.
|
java.util.List<javax.persistence.criteria.Expression<?>> |
getGroupList()
Return a list of the grouping expressions
|
javax.persistence.criteria.Predicate |
getGroupRestriction()
Return the predicate that corresponds to the restriction(s) over the
grouping items.
|
java.util.Set<javax.persistence.criteria.Root<?>> |
getRoots()
Return the query roots.
|
javax.persistence.criteria.AbstractQuery<T> |
groupBy(javax.persistence.criteria.Expression<?>... grouping)
Specify the expressions that are used to form groups over the query
results.
|
javax.persistence.criteria.AbstractQuery<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.AbstractQuery<T> |
having(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
Specify a restriction over the groups of the query.
|
javax.persistence.criteria.AbstractQuery<T> |
having(javax.persistence.criteria.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.
|
javax.persistence.criteria.AbstractQuery<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.AbstractQuery<T> |
where(javax.persistence.criteria.Predicate... restrictions)
Modify the query to restrict the query result according to the
conjunction of the specified restriction predicates.
|
addParameter, getParameters, getRestriction, getResultType, internalFrom, internalFrom, subquery, translate
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AbstractQueryImpl(javax.persistence.metamodel.Metamodel metamodel, org.eclipse.persistence.internal.jpa.querydef.AbstractQueryImpl.ResultType queryResult, CriteriaBuilderImpl queryBuilder, java.lang.Class<T> resultType)
public javax.persistence.criteria.AbstractQuery<T> groupBy(java.util.List<javax.persistence.criteria.Expression<?>> grouping)
groupBy
in interface javax.persistence.criteria.AbstractQuery<T>
grouping
- list of zero or more grouping expressionspublic javax.persistence.criteria.AbstractQuery<T> groupBy(javax.persistence.criteria.Expression<?>... grouping)
groupBy
in interface javax.persistence.criteria.AbstractQuery<T>
grouping
- zero or more grouping expressionspublic javax.persistence.criteria.AbstractQuery<T> having(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
having
in interface javax.persistence.criteria.AbstractQuery<T>
restriction
- a simple or compound boolean expressionpublic javax.persistence.criteria.AbstractQuery<T> having(javax.persistence.criteria.Predicate... restrictions)
having
in interface javax.persistence.criteria.AbstractQuery<T>
restrictions
- zero or more restriction predicatespublic abstract void addJoin(FromImpl join)
public javax.persistence.criteria.AbstractQuery<T> distinct(boolean distinct)
distinct
in interface javax.persistence.criteria.AbstractQuery<T>
distinct
- boolean value specifying whether duplicate results must be
eliminated from the query result or whether they must be
retainedpublic java.util.List<javax.persistence.criteria.Expression<?>> getGroupList()
getGroupList
in interface javax.persistence.criteria.AbstractQuery<T>
public javax.persistence.criteria.Predicate getGroupRestriction()
getGroupRestriction
in interface javax.persistence.criteria.AbstractQuery<T>
public java.util.Set<javax.persistence.criteria.Root<?>> getRoots()
getRoots
in interface javax.persistence.criteria.AbstractQuery<T>
public boolean isDistinct()
isDistinct
in interface javax.persistence.criteria.AbstractQuery<T>
public <X> javax.persistence.criteria.Root<X> from(javax.persistence.metamodel.EntityType<X> entity)
from
in interface javax.persistence.criteria.AbstractQuery<T>
entity
- metamodel entity representing the entity of type Xpublic <X> javax.persistence.criteria.Root<X> from(java.lang.Class<X> entityClass)
from
in interface javax.persistence.criteria.AbstractQuery<T>
entityClass
- the entity classpublic javax.persistence.criteria.AbstractQuery<T> where(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
where
in interface javax.persistence.criteria.AbstractQuery<T>
where
in class CommonAbstractCriteriaImpl<T>
restriction
- a simple or compound boolean expressionpublic javax.persistence.criteria.AbstractQuery<T> where(javax.persistence.criteria.Predicate... restrictions)
where
in interface javax.persistence.criteria.AbstractQuery<T>
where
in class CommonAbstractCriteriaImpl<T>
restrictions
- zero or more restriction predicatesEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference