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
| Modifier and Type | Class and Description |
|---|---|
| protected static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected Expression | |
| protected boolean | |
| protected List | |
| protected Predicate | |
| protected AbstractQueryImpl. | |
| protected Set | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | AbstractQueryImpl(Metamodel metamodel, AbstractQueryImpl.
|
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public AbstractQuery | Returns: the modified query.boolean value specifying whether duplicate results must be
eliminated from the query result or whether they must be
retained distinct)Implements jakarta. |
| protected void | |
| public <X> Root | Returns: query root corresponding to the given entitymetamodel entity representing the entity of type X entity)Implements jakarta. |
| public <X> Root | Returns: query root corresponding to the given entitythe entity class entityClass)Implements jakarta. |
| protected Expression | |
| protected Expression | |
| public List | Returns: the list of grouping expressionsImplements jakarta. |
| public Predicate | Returns: having clause predicateImplements jakarta. |
| public Set | Returns: the set of query rootsImplements jakarta. |
| public AbstractQuery | Returns: the modified querylist of zero or more grouping expressions grouping)Implements jakarta. |
| public AbstractQuery | Returns: the modified queryzero or more grouping expressions grouping)Implements jakarta. |
| public AbstractQuery | Returns: the modified querya simple or compound boolean expression restriction)Implements jakarta. |
| public AbstractQuery | Returns: the modified queryzero or more restriction predicates restrictions)Implements jakarta. |
| protected void | integrateRoot(RootImpl<X> root)
Implements abstract org. |
| public boolean | Returns: boolean indicating whether duplicate query results must be eliminatedImplements jakarta. |
| public AbstractQuery | Returns: the modified querya simple or compound boolean expression restriction)Overrides org. Implements jakarta. |
| public AbstractQuery | Returns: the modified queryzero or more restriction predicates restrictions)Overrides org. Implements jakarta. |
| baseExpression | back to summary |
|---|---|
| protected Expression baseExpression | |
| distinct | back to summary |
|---|---|
| protected boolean distinct | |
| groupBy | back to summary |
|---|---|
| protected List<Expression<?>> groupBy | |
| havingClause | back to summary |
|---|---|
| protected Predicate havingClause | |
| queryResult | back to summary |
|---|---|
| protected AbstractQueryImpl. | |
| roots | back to summary |
|---|---|
| protected Set<Root<?>> roots | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| AbstractQueryImpl | back to summary |
|---|---|
| public AbstractQueryImpl(Metamodel metamodel, AbstractQueryImpl. | |
| addJoin | back to summary |
|---|---|
| public abstract void addJoin(FromImpl<Z, X> join) | |
| distinct | back to summary |
|---|---|
| public AbstractQuery Implements jakarta. Specify whether duplicate query results will be eliminated. A true value will cause duplicates to be eliminated. A false value will cause duplicates to be retained. If distinct has not been specified, duplicate results must be retained. This method only overrides the return type of the corresponding AbstractQuery method.
| |
| findJoins | back to summary |
|---|---|
| protected void findJoins(FromImpl<Z, X> root) | |
| from | back to summary |
|---|---|
| public <X> Root Implements jakarta. Add a query root corresponding to the given entity, forming a Cartesian product with any existing roots.
| |
| from | back to summary |
|---|---|
| public <X> Root Implements jakarta. Add a query root corresponding to the given entity, forming a Cartesian product with any existing roots. | |
| getBaseExpression | back to summary |
|---|---|
| protected Expression getBaseExpression() Implements abstract org.
| |
| getBaseExpression | back to summary |
|---|---|
| protected Expression getBaseExpression(Root<X> root) | |
| getGroupList | back to summary |
|---|---|
| public List Implements jakarta. Return a list of the grouping expressions
| |
| getGroupRestriction | back to summary |
|---|---|
| public Predicate getGroupRestriction() Implements jakarta. Return the predicate that corresponds to the restriction(s) over the grouping items. | |
| getRoots | back to summary |
|---|---|
| public Set Implements jakarta. Return the query roots. | |
| groupBy | back to summary |
|---|---|
| public AbstractQuery Implements jakarta. Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed.
| |
| groupBy | back to summary |
|---|---|
| public AbstractQuery Implements jakarta. Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed.
| |
| having | back to summary |
|---|---|
| public AbstractQuery Implements jakarta. Specify a restriction over the groups of the query. Replaces the previous having restriction(s), if any.
| |
| having | back to summary |
|---|---|
| public AbstractQuery Implements jakarta. Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed.
| |
| integrateRoot | back to summary |
|---|---|
| protected void integrateRoot(RootImpl<X> root) Implements abstract org. Doc from org. Used to use a root from a different query.
| |
| isDistinct | back to summary |
|---|---|
| public boolean isDistinct() Implements jakarta. Return whether duplicate query results must be eliminated or retained.
| |
| where | back to summary |
|---|---|
| public AbstractQuery Overrides org. Implements jakarta. Modify the query to restrict the query result according to the specified boolean expression. Replaces the previously added restriction(s), if any. This method only overrides the return type of the corresponding AbstractQuery method.
| |
| where | back to summary |
|---|---|
| public AbstractQuery Overrides org. Implements jakarta. Modify the query to restrict the query result according to the conjunction of the specified restriction predicates. Replaces the previously added restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed. This method only overrides the return type of the corresponding AbstractQuery method.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractQueryImpl. | |
| public static final AbstractQueryImpl. | |
| public static final AbstractQueryImpl. | |
| public static final AbstractQueryImpl. | |
| public static final AbstractQueryImpl. | |
| public static final AbstractQueryImpl. | |
| public static final AbstractQueryImpl. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractQueryImpl. | |
| public static AbstractQueryImpl. |
| CONSTRUCTOR | back to summary |
|---|---|
| public static final AbstractQueryImpl. | |
| ENTITY | back to summary |
|---|---|
| public static final AbstractQueryImpl. | |
| OBJECT_ARRAY | back to summary |
|---|---|
| public static final AbstractQueryImpl. | |
| OTHER | back to summary |
|---|---|
| public static final AbstractQueryImpl. | |
| PARTIAL | back to summary |
|---|---|
| public static final AbstractQueryImpl. | |
| TUPLE | back to summary |
|---|---|
| public static final AbstractQueryImpl. | |
| UNKNOWN | back to summary |
|---|---|
| public static final AbstractQueryImpl. | |
| ResultType | back to summary |
|---|---|
| private ResultType() | |
| valueOf | back to summary |
|---|---|
| public static AbstractQueryImpl. | |
| values | back to summary |
|---|---|
| public static AbstractQueryImpl. | |