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 TypeMethodDescriptionvoidaddAssignment(SqmAssignment<?> assignment) voidappendHqlString(StringBuilder sb, SqmRenderContext context) 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, waitMethods 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:JpaConflictUpdateActionUpdate the value of the specified attribute.- Specified by:
setin 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:JpaConflictUpdateActionUpdate the value of the specified attribute.- Specified by:
setin interfaceJpaConflictUpdateAction<T>- Parameters:
attribute- attribute to be updatedvalue- new value- Returns:
- the modified update query
-
set
Description copied from interface:JpaConflictUpdateActionUpdate the value of the specified attribute.- Specified by:
setin interfaceJpaConflictUpdateAction<T>- Parameters:
attribute- attribute to be updatedvalue- new value- Returns:
- the modified update query
-
set
Description copied from interface:JpaConflictUpdateActionUpdate the value of the specified attribute.- Specified by:
setin interfaceJpaConflictUpdateAction<T>- Parameters:
attribute- attribute to be updatedvalue- new value- Returns:
- the modified update query
-
set
Description copied from interface:JpaConflictUpdateActionUpdate the value of the specified attribute.- Specified by:
setin interfaceJpaConflictUpdateAction<T>- Parameters:
attributeName- name of the attribute to be updatedvalue- new value- Returns:
- the modified update query
-
addAssignment
-
where
Description copied from interface:JpaConflictUpdateActionModify 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:
wherein interfaceJpaConflictUpdateAction<T>- Parameters:
restriction- a simple or compound boolean expression- Returns:
- the modified update query
-
where
Description copied from interface:JpaConflictUpdateActionModify 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:
wherein interfaceJpaConflictUpdateAction<T>- Parameters:
restrictions- zero or more restriction predicates- Returns:
- the modified update query
-
getRestriction
Description copied from interface:JpaConflictUpdateActionReturn the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.- Specified by:
getRestrictionin interfaceJpaConflictUpdateAction<T>- Returns:
- where clause predicate
-
initAndGetWhereClause
-
nodeBuilder
- Specified by:
nodeBuilderin interfaceSqmNode
-
copy
-
getSetClause
-
getWhereClause
-
appendHqlString
-