Class SqmConflictUpdateAction<T>
java.lang.Object
org.hibernate.query.sqm.tree.insert.SqmConflictUpdateAction<T>
- All Implemented Interfaces:
Serializable
,JpaConflictUpdateAction<T>
,JpaCriteriaNode
,SqmNode
public class SqmConflictUpdateAction<T>
extends Object
implements SqmNode, JpaConflictUpdateAction<T>
- Since:
- 6.5
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssignment
(SqmAssignment<?> assignment) void
copy
(SqmCopyContext context) Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.protected SqmWhereClause
<Y> SqmConflictUpdateAction<T>
set
(Path<Y> attribute, Expression<? extends Y> value) Update the value of the specified attribute.<Y,
X extends Y>
SqmConflictUpdateAction<T>Update the value of the specified attribute.<Y> SqmConflictUpdateAction<T>
set
(SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value) Update the value of the specified attribute.<Y,
X extends Y>
SqmConflictUpdateAction<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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
-
Constructor Details
-
SqmConflictUpdateAction
-
-
Method Details
-
set
public <Y,X extends Y> SqmConflictUpdateAction<T> set(SingularAttribute<? super T, Y> attribute, X value) Description copied from interface:JpaConflictUpdateAction
Update the value of the specified attribute.- Specified by:
set
in interfaceJpaConflictUpdateAction<T>
- Parameters:
attribute
- attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
set
public <Y> SqmConflictUpdateAction<T> set(SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value) Description copied from interface:JpaConflictUpdateAction
Update the value of the specified attribute.- Specified by:
set
in interfaceJpaConflictUpdateAction<T>
- Parameters:
attribute
- attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
set
Description copied from interface:JpaConflictUpdateAction
Update the value of the specified attribute.- Specified by:
set
in interfaceJpaConflictUpdateAction<T>
- Parameters:
attribute
- attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
set
Description copied from interface:JpaConflictUpdateAction
Update the value of the specified attribute.- Specified by:
set
in interfaceJpaConflictUpdateAction<T>
- Parameters:
attribute
- attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
set
Description copied from interface:JpaConflictUpdateAction
Update the value of the specified attribute.- Specified by:
set
in interfaceJpaConflictUpdateAction<T>
- Parameters:
attributeName
- name of the attribute to be updatedvalue
- new value- Returns:
- the modified update query
-
addAssignment
-
where
Description copied from interface:JpaConflictUpdateAction
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.- Specified by:
where
in interfaceJpaConflictUpdateAction<T>
- Parameters:
restriction
- a simple or compound boolean expression- Returns:
- the modified update query
-
where
Description copied from interface:JpaConflictUpdateAction
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.- Specified by:
where
in interfaceJpaConflictUpdateAction<T>
- Parameters:
restrictions
- zero or more restriction predicates- Returns:
- the modified update query
-
getRestriction
Description copied from interface:JpaConflictUpdateAction
Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.- Specified by:
getRestriction
in interfaceJpaConflictUpdateAction<T>
- Returns:
- where clause predicate
-
initAndGetWhereClause
-
nodeBuilder
- Specified by:
nodeBuilder
in interfaceSqmNode
-
copy
-
getSetClause
-
getWhereClause
-
appendHqlString
-