Class SqmConflictUpdateAction<T>
java.lang.Object
org.hibernate.query.sqm.tree.insert.SqmConflictUpdateAction<T>
- All Implemented Interfaces:
Serializable, JpaConflictUpdateAction<T>, JpaCriteriaNode, SqmCacheable, 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) intcopy(SqmCopyContext context) booleanReturn the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.inthashCode()protected SqmWhereClausebooleanisCompatible(Object object) <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 Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SqmNode
asLoggableText
-
Constructor Details
-
SqmConflictUpdateAction
-
-
Method Details
-
set
@Nonnull public <Y, X extends Y> SqmConflictUpdateAction<T> set(@Nonnull SingularAttribute<? super T, Y> attribute, @Nullable 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
@Nonnull public <Y> SqmConflictUpdateAction<T> set(@Nonnull SingularAttribute<? super T, Y> attribute, @Nonnull 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
@Nonnull public <Y, X extends Y> SqmConflictUpdateAction<T> set(@Nonnull Path<Y> attribute, @Nullable 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
@Nonnull public <Y> SqmConflictUpdateAction<T> set(@Nonnull Path<Y> attribute, @Nonnull 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
@Nonnull public SqmConflictUpdateAction<T> set(@Nonnull String attributeName, @Nullable Object value) 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
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-