Package org.hibernate.query.criteria
Interface JpaConflictUpdateAction<T>
- All Known Implementing Classes:
SqmConflictUpdateAction
The update action that should happen on a unique constraint violation for an insert statement.
- Since:
- 6.5
-
Method Summary
Modifier and TypeMethodDescriptionReturn the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.<Y> JpaConflictUpdateAction<T>
set
(Path<Y> attribute, Expression<? extends Y> value) Update the value of the specified attribute.<Y,
X extends Y>
JpaConflictUpdateAction<T>Update the value of the specified attribute.<Y> JpaConflictUpdateAction<T>
set
(SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value) Update the value of the specified attribute.<Y,
X extends Y>
JpaConflictUpdateAction<T>set
(SingularAttribute<? super T, Y> attribute, X value) Update the value of the specified attribute.Update the value of the specified attribute.where
(Expression<Boolean> restriction) Modify the update query to restrict the target of the update according to the specified boolean expression.Modify the update query to restrict the target of the update according to the conjunction of the specified restriction predicates.
-
Method Details
-
set
Update the value of the specified attribute.- Parameters:
attribute
- attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
set
<Y> JpaConflictUpdateAction<T> set(SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value) Update the value of the specified attribute.- Parameters:
attribute
- attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
set
Update the value of the specified attribute.- Parameters:
attribute
- attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
set
Update the value of the specified attribute.- Parameters:
attribute
- attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
set
Update the value of the specified attribute.- Parameters:
attributeName
- name of the attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
where
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.- Parameters:
restriction
- a simple or compound boolean expression- Returns:
- the modified update query
-
where
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.- Parameters:
restrictions
- zero or more restriction predicates- Returns:
- the modified update query
-
getRestriction
JpaPredicate getRestriction()Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.- Returns:
- where clause predicate
-