public class CriteriaQueryImpl<T> extends AbstractQueryImpl<T> implements jakarta.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 FormAbstractQueryImpl.ResultType| Modifier and Type | Field and Description |
|---|---|
protected Set<FromImpl> |
joins |
protected List<jakarta.persistence.criteria.Order> |
orderBy |
protected SelectionImpl<?> |
selection |
baseExpression, distinct, groupBy, havingClause, queryResult, rootsmetamodel, parameters, queryBuilder, queryType, where| Constructor and Description |
|---|
CriteriaQueryImpl(jakarta.persistence.metamodel.Metamodel metamodel,
AbstractQueryImpl.ResultType queryResult,
Class result,
CriteriaBuilderImpl queryBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJoin(FromImpl from) |
protected ObjectLevelReadQuery |
createCompoundQuery()
Translates from the criteria query to a EclipseLink Database Query.
|
protected ObjectLevelReadQuery |
createSimpleQuery() |
jakarta.persistence.criteria.CriteriaQuery<T> |
distinct(boolean distinct)
Specify whether duplicate query results will be eliminated.
|
protected DatabaseQuery |
getDatabaseQuery() |
List<jakarta.persistence.criteria.Order> |
getOrderList()
Return the ordering expressions in order of precedence.
|
jakarta.persistence.criteria.Selection<T> |
getSelection()
Return the selection item of the query.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
groupBy(jakarta.persistence.criteria.Expression<?>... grouping)
Specify the expressions that are used to form groups over the query
results.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
groupBy(List<jakarta.persistence.criteria.Expression<?>> grouping)
Specify the expressions that are used to form groups over the query
results.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
having(jakarta.persistence.criteria.Expression<Boolean> restriction)
Specify a restriction over the groups of the query.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
having(jakarta.persistence.criteria.Predicate... restrictions)
Specify restrictions over the groups of the query according the
conjunction of the specified restriction predicates.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
multiselect(List<jakarta.persistence.criteria.Selection<?>> selectionList)
Specify the items that are to be returned in the query result.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
multiselect(jakarta.persistence.criteria.Selection<?>... selections)
Specify the items that are to be returned in the query result.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
orderBy(List<jakarta.persistence.criteria.Order> o)
Specify the ordering expressions that are used to order the query
results.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
orderBy(jakarta.persistence.criteria.Order... o)
Specify the ordering expressions that are used to order the query
results.
|
void |
populateAndSetConstructorSelection(ConstructorSelectionImpl constructorSelection,
Class<?> class1,
jakarta.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.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
select(jakarta.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.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
where(jakarta.persistence.criteria.Expression<Boolean> restriction)
Modify the query to restrict the query result according to the specified
boolean expression.
|
jakarta.persistence.criteria.CriteriaQuery<T> |
where(jakarta.persistence.criteria.Predicate... restrictions)
Modify the query to restrict the query result according to the
conjunction of the specified restriction predicates.
|
findJoins, findRootAndParameters, from, from, getBaseExpression, getBaseExpression, getGroupList, getGroupRestriction, getRoots, integrateRoot, isDistinctaddParameter, findRootAndParameters, getParameters, getRestriction, getResultType, internalFrom, internalFrom, subqueryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected SelectionImpl<?> selection
protected List<jakarta.persistence.criteria.Order> orderBy
public CriteriaQueryImpl(jakarta.persistence.metamodel.Metamodel metamodel,
AbstractQueryImpl.ResultType queryResult,
Class result,
CriteriaBuilderImpl queryBuilder)
public jakarta.persistence.criteria.CriteriaQuery<T> select(jakarta.persistence.criteria.Selection<? extends T> selection)
select in interface jakarta.persistence.criteria.CriteriaQuery<T>selection - selection specifying the item that is to be returned in the
query resultpublic jakarta.persistence.criteria.CriteriaQuery<T> multiselect(jakarta.persistence.criteria.Selection<?>... selections)
multiselect in interface jakarta.persistence.criteria.CriteriaQuery<T>selections - expressions specifying the items that are to be returned in
the query resultpublic jakarta.persistence.criteria.CriteriaQuery<T> multiselect(List<jakarta.persistence.criteria.Selection<?>> selectionList)
multiselect in interface jakarta.persistence.criteria.CriteriaQuery<T>selectionList - list of expressions specifying the items that to be are
returned in the query resultpublic jakarta.persistence.criteria.CriteriaQuery<T> where(jakarta.persistence.criteria.Expression<Boolean> restriction)
where in interface jakarta.persistence.criteria.AbstractQuery<T>where in interface jakarta.persistence.criteria.CriteriaQuery<T>where in class AbstractQueryImpl<T>restriction - a simple or compound boolean expressionpublic jakarta.persistence.criteria.CriteriaQuery<T> where(jakarta.persistence.criteria.Predicate... restrictions)
where in interface jakarta.persistence.criteria.AbstractQuery<T>where in interface jakarta.persistence.criteria.CriteriaQuery<T>where in class AbstractQueryImpl<T>restrictions - zero or more restriction predicatespublic jakarta.persistence.criteria.CriteriaQuery<T> groupBy(jakarta.persistence.criteria.Expression<?>... grouping)
groupBy in interface jakarta.persistence.criteria.AbstractQuery<T>groupBy in interface jakarta.persistence.criteria.CriteriaQuery<T>groupBy in class AbstractQueryImpl<T>grouping - zero or more grouping expressionspublic jakarta.persistence.criteria.CriteriaQuery<T> groupBy(List<jakarta.persistence.criteria.Expression<?>> grouping)
groupBy in interface jakarta.persistence.criteria.AbstractQuery<T>groupBy in interface jakarta.persistence.criteria.CriteriaQuery<T>groupBy in class AbstractQueryImpl<T>grouping - list of zero or more grouping expressionspublic jakarta.persistence.criteria.CriteriaQuery<T> having(jakarta.persistence.criteria.Expression<Boolean> restriction)
having in interface jakarta.persistence.criteria.AbstractQuery<T>having in interface jakarta.persistence.criteria.CriteriaQuery<T>having in class AbstractQueryImpl<T>restriction - a simple or compound boolean expressionpublic jakarta.persistence.criteria.CriteriaQuery<T> having(jakarta.persistence.criteria.Predicate... restrictions)
having in interface jakarta.persistence.criteria.AbstractQuery<T>having in interface jakarta.persistence.criteria.CriteriaQuery<T>having in class AbstractQueryImpl<T>restrictions - zero or more restriction predicatespublic jakarta.persistence.criteria.CriteriaQuery<T> orderBy(jakarta.persistence.criteria.Order... o)
orderBy in interface jakarta.persistence.criteria.CriteriaQuery<T>o - zero or more ordering expressionspublic jakarta.persistence.criteria.CriteriaQuery<T> orderBy(List<jakarta.persistence.criteria.Order> o)
orderBy in interface jakarta.persistence.criteria.CriteriaQuery<T>o - list of zero or more ordering expressionspublic void populateAndSetConstructorSelection(ConstructorSelectionImpl constructorSelection, Class<?> class1, jakarta.persistence.criteria.Selection<?>... selections) throws IllegalArgumentException
class1 - selections - IllegalArgumentExceptionpublic jakarta.persistence.criteria.CriteriaQuery<T> distinct(boolean distinct)
distinct in interface jakarta.persistence.criteria.AbstractQuery<T>distinct in interface jakarta.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>protected DatabaseQuery getDatabaseQuery()
getDatabaseQuery in class CommonAbstractCriteriaImpl<T>public List<jakarta.persistence.criteria.Order> getOrderList()
getOrderList in interface jakarta.persistence.criteria.CriteriaQuery<T>public jakarta.persistence.criteria.Selection<T> getSelection()
getSelection in interface jakarta.persistence.criteria.AbstractQuery<T>protected ObjectLevelReadQuery createCompoundQuery()
protected ObjectLevelReadQuery createSimpleQuery()
public DatabaseQuery translate()
translate in class CommonAbstractCriteriaImpl<T>Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.