public abstract class CommonAbstractCriteriaImpl<T>
extends java.lang.Object
implements javax.persistence.criteria.CommonAbstractCriteria
Purpose: Contains the implementation of the CommonAbstractCriteria interface of the JPA criteria API.
Description: This is the container class for the components that define a query. This is the superclass of CriteriaQuery, SubQuery, CriteriaDelete and CriteriaUpdate.
CommonAbstractCriteria
Constructor and Description |
---|
CommonAbstractCriteriaImpl(javax.persistence.metamodel.Metamodel metamodel,
CriteriaBuilderImpl queryBuilder,
java.lang.Class<T> resultType) |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(javax.persistence.criteria.ParameterExpression<?> parameter) |
java.util.Set<javax.persistence.criteria.ParameterExpression<?>> |
getParameters()
Return the parameters of the query
|
javax.persistence.criteria.Predicate |
getRestriction()
Return the predicate that corresponds to the where clause restriction(s).
|
java.lang.Class<T> |
getResultType()
Return the result type of the query.
|
javax.persistence.criteria.Root |
internalFrom(java.lang.Class entityClass)
Add a query root corresponding to the given entity, forming a Cartesian
product with any existing roots.
|
javax.persistence.criteria.Root |
internalFrom(javax.persistence.metamodel.EntityType entity)
Add a query root corresponding to the given entity, forming a Cartesian
product with any existing roots.
|
<U> javax.persistence.criteria.Subquery<U> |
subquery(java.lang.Class<U> type)
Specify that the query is to be used as a subquery having the specified
return type.
|
DatabaseQuery |
translate()
Translates from the criteria query to a EclipseLink Database Query.
|
javax.persistence.criteria.CommonAbstractCriteria |
where(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
Modify the query to restrict the query results according to the specified
boolean expression.
|
javax.persistence.criteria.CommonAbstractCriteria |
where(javax.persistence.criteria.Predicate... restrictions)
Modify the query to restrict the query results according to the
conjunction of the specified restriction predicates.
|
public CommonAbstractCriteriaImpl(javax.persistence.metamodel.Metamodel metamodel, CriteriaBuilderImpl queryBuilder, java.lang.Class<T> resultType)
public javax.persistence.criteria.Predicate getRestriction()
getRestriction
in interface javax.persistence.criteria.CommonAbstractCriteria
public java.lang.Class<T> getResultType()
public javax.persistence.criteria.Root internalFrom(javax.persistence.metamodel.EntityType entity)
entity
- metamodel entity representing the entity of type Xpublic javax.persistence.criteria.Root internalFrom(java.lang.Class entityClass)
entityClass
- the entity classpublic javax.persistence.criteria.CommonAbstractCriteria where(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
restriction
- a simple or compound boolean expressionpublic javax.persistence.criteria.CommonAbstractCriteria where(javax.persistence.criteria.Predicate... restrictions)
restrictions
- zero or more restriction predicatespublic <U> javax.persistence.criteria.Subquery<U> subquery(java.lang.Class<U> type)
subquery
in interface javax.persistence.criteria.CommonAbstractCriteria
public void addParameter(javax.persistence.criteria.ParameterExpression<?> parameter)
public java.util.Set<javax.persistence.criteria.ParameterExpression<?>> getParameters()
public DatabaseQuery translate()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference