public abstract class CommonAbstractCriteriaImpl<T>
extends java.lang.Object
implements java.io.Serializable
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,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Metamodel |
metamodel |
protected java.util.Set<<any>> |
parameters |
protected CriteriaBuilderImpl |
queryBuilder |
protected java.lang.Class |
queryType |
protected <any> |
where |
| Constructor and Description |
|---|
CommonAbstractCriteriaImpl(Metamodel metamodel,
CriteriaBuilderImpl queryBuilder,
java.lang.Class<T> resultType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(<any> parameter) |
protected void |
findRootAndParameters(<any> predicate) |
protected abstract org.eclipse.persistence.expressions.Expression |
getBaseExpression() |
protected abstract DatabaseQuery |
getDatabaseQuery() |
java.util.Set<<any>> |
getParameters()
Return the parameters of the query
|
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.
|
protected abstract void |
integrateRoot(RootImpl root)
Used to use a root from a different query.
|
Root |
internalFrom(java.lang.Class entityClass)
Add a query root corresponding to the given entity, forming a Cartesian
product with any existing roots.
|
Root |
internalFrom(EntityType entity)
Add a query root corresponding to the given entity, forming a Cartesian
product with any existing roots.
|
<U> <any> |
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.
|
CommonAbstractCriteria |
where(<any> restriction)
Modify the query to restrict the query results according to the specified
boolean expression.
|
CommonAbstractCriteria |
where(Predicate... restrictions)
Modify the query to restrict the query results according to the
conjunction of the specified restriction predicates.
|
protected Metamodel metamodel
protected <any> where
protected CriteriaBuilderImpl queryBuilder
protected java.lang.Class queryType
protected java.util.Set<<any>> parameters
public CommonAbstractCriteriaImpl(Metamodel metamodel,
CriteriaBuilderImpl queryBuilder,
java.lang.Class<T> resultType)
public Predicate getRestriction()
public java.lang.Class<T> getResultType()
public Root internalFrom(EntityType entity)
entity - metamodel entity representing the entity of type Xpublic Root internalFrom(java.lang.Class entityClass)
entityClass - the entity classpublic CommonAbstractCriteria where(<any> restriction)
restriction - a simple or compound boolean expressionpublic CommonAbstractCriteria where(Predicate... restrictions)
restrictions - zero or more restriction predicatespublic <U> <any> subquery(java.lang.Class<U> type)
protected abstract void integrateRoot(RootImpl root)
protected void findRootAndParameters(<any> predicate)
protected abstract org.eclipse.persistence.expressions.Expression getBaseExpression()
public void addParameter(<any> parameter)
protected abstract DatabaseQuery getDatabaseQuery()
public java.util.Set<<any>> getParameters()
public DatabaseQuery translate()