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
@Nonnull <Y, X extends Y> JpaConflictUpdateAction<T> set(@Nonnull SingularAttribute<? super T, Y> attribute, @Nullable X value) Update the value of the specified attribute.- Parameters:
attribute- attribute to be updatedvalue- new value- Returns:
- the modified update query
-
set
@Nonnull <Y> JpaConflictUpdateAction<T> set(@Nonnull SingularAttribute<? super T, Y> attribute, @Nonnull 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
-
set
@Nonnull <Y> JpaConflictUpdateAction<T> set(@Nonnull Path<Y> attribute, @Nonnull 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
-
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
Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.- Returns:
- where clause predicate
-