public class CriteriaUpdateImpl<T> extends CommonAbstractCriteriaImpl<T> implements jakarta.persistence.criteria.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.
CriteriaUpdate,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected UpdateAllQuery |
query |
protected jakarta.persistence.criteria.Root<T> |
root |
metamodel, parameters, queryBuilder, queryType, where| Constructor and Description |
|---|
CriteriaUpdateImpl(jakarta.persistence.metamodel.Metamodel metamodel,
CriteriaBuilderImpl queryBuilder,
Class<T> resultType) |
| Modifier and Type | Method and Description |
|---|---|
jakarta.persistence.criteria.Root<T> |
from(Class<T> entityClass) |
jakarta.persistence.criteria.Root<T> |
from(jakarta.persistence.metamodel.EntityType<T> entity) |
protected Expression |
getBaseExpression() |
protected DatabaseQuery |
getDatabaseQuery() |
jakarta.persistence.criteria.Root<T> |
getRoot() |
protected void |
integrateRoot(RootImpl root)
Used to use a root from a different query.
|
<Y> jakarta.persistence.criteria.CriteriaUpdate<T> |
set(jakarta.persistence.criteria.Path<Y> attribute,
jakarta.persistence.criteria.Expression<? extends Y> value) |
<Y,X extends Y> |
set(jakarta.persistence.criteria.Path<Y> attribute,
X value) |
<Y> jakarta.persistence.criteria.CriteriaUpdate<T> |
set(jakarta.persistence.metamodel.SingularAttribute<? super T,Y> attribute,
jakarta.persistence.criteria.Expression<? extends Y> value) |
<Y,X extends Y> |
set(jakarta.persistence.metamodel.SingularAttribute<? super T,Y> attribute,
X value) |
jakarta.persistence.criteria.CriteriaUpdate<T> |
set(String attributeName,
Object value) |
jakarta.persistence.criteria.CriteriaUpdate<T> |
where(jakarta.persistence.criteria.Expression<Boolean> restriction)
Modify the query to restrict the query results according to the specified
boolean expression.
|
jakarta.persistence.criteria.CriteriaUpdate<T> |
where(jakarta.persistence.criteria.Predicate... restrictions)
Modify the query to restrict the query results according to the
conjunction of the specified restriction predicates.
|
addParameter, findRootAndParameters, getParameters, getRestriction, getResultType, internalFrom, internalFrom, subquery, translateprotected jakarta.persistence.criteria.Root<T> root
protected UpdateAllQuery query
public CriteriaUpdateImpl(jakarta.persistence.metamodel.Metamodel metamodel,
CriteriaBuilderImpl queryBuilder,
Class<T> resultType)
public jakarta.persistence.criteria.Root<T> from(Class<T> entityClass)
from in interface jakarta.persistence.criteria.CriteriaUpdate<T>public jakarta.persistence.criteria.Root<T> from(jakarta.persistence.metamodel.EntityType<T> entity)
from in interface jakarta.persistence.criteria.CriteriaUpdate<T>public jakarta.persistence.criteria.Root<T> getRoot()
getRoot in interface jakarta.persistence.criteria.CriteriaUpdate<T>public <Y,X extends Y> jakarta.persistence.criteria.CriteriaUpdate<T> set(jakarta.persistence.metamodel.SingularAttribute<? super T,Y> attribute, X value)
set in interface jakarta.persistence.criteria.CriteriaUpdate<T>public <Y> jakarta.persistence.criteria.CriteriaUpdate<T> set(jakarta.persistence.metamodel.SingularAttribute<? super T,Y> attribute, jakarta.persistence.criteria.Expression<? extends Y> value)
set in interface jakarta.persistence.criteria.CriteriaUpdate<T>public <Y,X extends Y> jakarta.persistence.criteria.CriteriaUpdate<T> set(jakarta.persistence.criteria.Path<Y> attribute, X value)
set in interface jakarta.persistence.criteria.CriteriaUpdate<T>public <Y> jakarta.persistence.criteria.CriteriaUpdate<T> set(jakarta.persistence.criteria.Path<Y> attribute, jakarta.persistence.criteria.Expression<? extends Y> value)
set in interface jakarta.persistence.criteria.CriteriaUpdate<T>public jakarta.persistence.criteria.CriteriaUpdate<T> set(String attributeName, Object value)
set in interface jakarta.persistence.criteria.CriteriaUpdate<T>public jakarta.persistence.criteria.CriteriaUpdate<T> where(jakarta.persistence.criteria.Expression<Boolean> restriction)
CommonAbstractCriteriaImplwhere in interface jakarta.persistence.criteria.CriteriaUpdate<T>where in class CommonAbstractCriteriaImpl<T>restriction - a simple or compound boolean expressionpublic jakarta.persistence.criteria.CriteriaUpdate<T> where(jakarta.persistence.criteria.Predicate... restrictions)
CommonAbstractCriteriaImplwhere in interface jakarta.persistence.criteria.CriteriaUpdate<T>where in class CommonAbstractCriteriaImpl<T>restrictions - zero or more restriction predicatesprotected void integrateRoot(RootImpl root)
CommonAbstractCriteriaImplintegrateRoot in class CommonAbstractCriteriaImpl<T>protected Expression getBaseExpression()
getBaseExpression in class CommonAbstractCriteriaImpl<T>protected DatabaseQuery getDatabaseQuery()
getDatabaseQuery in class CommonAbstractCriteriaImpl<T>Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.