Module org.eclipse.persistence.jpa
Class CriteriaUpdateImpl<T>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.CommonAbstractCriteriaImpl<T>
org.eclipse.persistence.internal.jpa.querydef.CriteriaUpdateImpl<T>
- All Implemented Interfaces:
CommonAbstractCriteria
,CriteriaUpdate<T>
,Serializable
public class CriteriaUpdateImpl<T>
extends CommonAbstractCriteriaImpl<T>
implements CriteriaUpdate<T>
Purpose: Contains the implementation of the CriteriaUpdate interface of the JPA criteria API.
Description: This is the container class for the components that define an Update Query.
- Since:
- EclipseLink 2.5
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.CommonAbstractCriteriaImpl
metamodel, parameters, queryBuilder, queryType, where
-
Constructor Summary
ConstructorDescriptionCriteriaUpdateImpl
(Metamodel metamodel, CriteriaBuilderImpl queryBuilder, Class<T> resultType) -
Method Summary
Modifier and TypeMethodDescriptionfrom
(EntityType<T> entity) protected Expression
protected DatabaseQuery
getRoot()
protected void
integrateRoot
(RootImpl root) Used to use a root from a different query.<Y> CriteriaUpdate
<T> set
(Path<Y> attribute, Expression<? extends Y> value) <Y,
X extends Y>
CriteriaUpdate<T> <Y> CriteriaUpdate
<T> set
(SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value) <Y,
X extends Y>
CriteriaUpdate<T> set
(SingularAttribute<? super T, Y> attribute, X value) where
(Expression<Boolean> restriction) Modify the query to restrict the query results according to the specified boolean expression.Modify the query to restrict the query results according to the conjunction of the specified restriction predicates.Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.CommonAbstractCriteriaImpl
addParameter, findRootAndParameters, findRootAndParameters, getParameters, getRestriction, getResultType, internalFrom, internalFrom, subquery, translate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getRestriction, subquery
-
Field Details
-
root
-
query
-
-
Constructor Details
-
CriteriaUpdateImpl
public CriteriaUpdateImpl(Metamodel metamodel, CriteriaBuilderImpl queryBuilder, Class<T> resultType)
-
-
Method Details
-
from
- Specified by:
from
in interfaceCriteriaUpdate<T>
-
from
- Specified by:
from
in interfaceCriteriaUpdate<T>
-
getRoot
- Specified by:
getRoot
in interfaceCriteriaUpdate<T>
-
set
- Specified by:
set
in interfaceCriteriaUpdate<T>
-
set
public <Y> CriteriaUpdate<T> set(SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value) - Specified by:
set
in interfaceCriteriaUpdate<T>
-
set
- Specified by:
set
in interfaceCriteriaUpdate<T>
-
set
- Specified by:
set
in interfaceCriteriaUpdate<T>
-
set
- Specified by:
set
in interfaceCriteriaUpdate<T>
-
where
Description copied from class:CommonAbstractCriteriaImpl
Modify the query to restrict the query results according to the specified boolean expression. Replaces the previously added restriction(s), if any.- Specified by:
where
in interfaceCriteriaUpdate<T>
- Overrides:
where
in classCommonAbstractCriteriaImpl<T>
- Parameters:
restriction
- a simple or compound boolean expression- Returns:
- the modified query
-
where
Description copied from class:CommonAbstractCriteriaImpl
Modify the query to restrict the query results 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.- Specified by:
where
in interfaceCriteriaUpdate<T>
- Overrides:
where
in classCommonAbstractCriteriaImpl<T>
- Parameters:
restrictions
- zero or more restriction predicates- Returns:
- the modified query
-
integrateRoot
Description copied from class:CommonAbstractCriteriaImpl
Used to use a root from a different query.- Specified by:
integrateRoot
in classCommonAbstractCriteriaImpl<T>
-
getBaseExpression
- Specified by:
getBaseExpression
in classCommonAbstractCriteriaImpl<T>
-
getDatabaseQuery
- Specified by:
getDatabaseQuery
in classCommonAbstractCriteriaImpl<T>
-