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
| Modifier and Type | Field and Description |
|---|---|
| protected UpdateAllQuery | |
| protected Root | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Root | from(Class<T>
the entity class entityClass)Implements jakarta. |
| public Root | from(EntityType<T>
metamodel entity representing the entity
of type X entity)Implements jakarta. |
| protected Expression | |
| protected DatabaseQuery | |
| public Root | |
| protected void | integrateRoot(RootImpl<X> root)
Implements abstract org. |
| public <Y, X extends Y> CriteriaUpdate | set(SingularAttribute<? super T, Y>
attribute to be updated attribute, X new value value)Implements jakarta. |
| public <Y> CriteriaUpdate | set(SingularAttribute<? super T, Y>
attribute to be updated attribute, Expression<? extends Y> new value value)Implements jakarta. |
| public <Y, X extends Y> CriteriaUpdate | set(Path<Y>
attribute to be updated attribute, X new value value)Implements jakarta. |
| public <Y> CriteriaUpdate | set(Path<Y>
attribute to be updated attribute, Expression<? extends Y> new value value)Implements jakarta. |
| public CriteriaUpdate | set(String
name of the attribute to be updated attributeName, Object new value value)Implements jakarta. |
| public CriteriaUpdate | where(Expression<Boolean>
a simple or compound boolean expression restriction)Overrides org. Implements jakarta. |
| public CriteriaUpdate | where(Predicate...
zero or more restriction predicates restrictions)Overrides org. Implements jakarta. |
| query | back to summary |
|---|---|
| protected UpdateAllQuery query | |
| root | back to summary |
|---|---|
| protected Root<T> root | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| CriteriaUpdateImpl | back to summary |
|---|---|
| public CriteriaUpdateImpl(Metamodel metamodel, CriteriaBuilderImpl queryBuilder, Class<T> resultType) | |
| from | back to summary |
|---|---|
| public Root Implements jakarta. Doc from jakarta. Create and add a query root corresponding to the entity
that is the target of the update.
A | |
| from | back to summary |
|---|---|
| public Root Implements jakarta. Doc from jakarta. Create and add a query root corresponding to the entity
that is the target of the update.
A
| |
| getBaseExpression | back to summary |
|---|---|
| protected Expression getBaseExpression() Implements abstract org.
| |
| getDatabaseQuery | back to summary |
|---|---|
| protected DatabaseQuery getDatabaseQuery() Implements abstract org.
| |
| getRoot | back to summary |
|---|---|
| public Root Implements jakarta. Doc from jakarta. Return the query root. | |
| 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.
| |
| set | back to summary |
|---|---|
| public <Y, X extends Y> CriteriaUpdate Implements jakarta. Doc from jakarta. Update the value of the specified attribute.
| |
| set | back to summary |
|---|---|
| public <Y> CriteriaUpdate Implements jakarta. Doc from jakarta. Update the value of the specified attribute.
| |
| set | back to summary |
|---|---|
| public <Y, X extends Y> CriteriaUpdate Implements jakarta. Doc from jakarta. Update the value of the specified attribute.
| |
| set | back to summary |
|---|---|
| public <Y> CriteriaUpdate Implements jakarta. Doc from jakarta. Update the value of the specified attribute.
| |
| set | back to summary |
|---|---|
| public CriteriaUpdate Implements jakarta. Doc from jakarta. Update the value of the specified attribute.
| |
| where | back to summary |
|---|---|
| public CriteriaUpdate Overrides org. Implements jakarta. Doc from jakarta. Modify the update query to restrict the target of the update according to the specified boolean expression. Replaces the previously added restriction(s), if any.
| |
| where | back to summary |
|---|---|
| public CriteriaUpdate Overrides org. Implements jakarta. Doc from jakarta. Modify the update query to restrict the target of the update 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.
| |