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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmConflictUpdateAction(SqmInsertStatement<T> insertStatement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAssignment(SqmAssignment<?> assignment)
void
appendHqlString(StringBuilder sb)
SqmConflictUpdateAction<T>
copy(SqmCopyContext context)
SqmPredicate
getRestriction()
Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.SqmSetClause
getSetClause()
SqmWhereClause
getWhereClause()
protected SqmWhereClause
initAndGetWhereClause()
NodeBuilder
nodeBuilder()
<Y> SqmConflictUpdateAction<T>
set(Path<Y> attribute, Expression<? extends Y> value)
Update the value of the specified attribute.<Y,X extends Y>
SqmConflictUpdateAction<T>set(Path<Y> attribute, X value)
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.SqmConflictUpdateAction<T>
set(String attributeName, Object value)
Update the value of the specified attribute.SqmConflictUpdateAction<T>
where(Expression<Boolean> restriction)
Modify the update query to restrict the target of the update according to the specified boolean expression.SqmConflictUpdateAction<T>
where(Predicate... restrictions)
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 Detail
-
SqmConflictUpdateAction
public SqmConflictUpdateAction(SqmInsertStatement<T> insertStatement)
-
-
Method Detail
-
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
public <Y,X extends Y> SqmConflictUpdateAction<T> set(Path<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(Path<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
public SqmConflictUpdateAction<T> set(String attributeName, Object value)
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
public void addAssignment(SqmAssignment<?> assignment)
-
where
public SqmConflictUpdateAction<T> where(Expression<Boolean> restriction)
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
public SqmConflictUpdateAction<T> where(Predicate... restrictions)
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
public SqmPredicate 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
protected SqmWhereClause initAndGetWhereClause()
-
nodeBuilder
public NodeBuilder nodeBuilder()
- Specified by:
nodeBuilder
in interfaceSqmNode
-
copy
public SqmConflictUpdateAction<T> copy(SqmCopyContext context)
-
getSetClause
public SqmSetClause getSetClause()
-
getWhereClause
public SqmWhereClause getWhereClause()
-
appendHqlString
public void appendHqlString(StringBuilder sb)
-
-