Class SqmConflictClause<T>
java.lang.Object
org.hibernate.query.sqm.tree.insert.SqmConflictClause<T>
- All Implemented Interfaces:
Serializable,JpaConflictClause<T>,JpaCriteriaNode,SqmNode,SqmVisitableNode
- Since:
- 6.5
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) conflictOnConstraint(@Nullable String constraintName) Sets the unique constraint name for which a constraint violation is allowed.conflictOnConstraintAttributes(SingularAttribute<T, ?>... attributes) Shorthand for callingJpaConflictClause.conflictOnConstraintPaths(List)with paths resolved for the given attributes against the insert target.conflictOnConstraintAttributes(String... attributes) Shorthand for callingJpaConflictClause.conflictOnConstraintPaths(List)with paths resolved for the given attributes against the insert target.conflictOnConstraintPaths(Path<?>... paths) conflictOnConstraintPaths(List<? extends Path<?>> paths) Sets the paths which are part of a unique constraint, for which a constraint violation is allowed.copy(SqmCopyContext context) Create a new conflict update action for this insert statement.boolean@Nullable SqmConflictUpdateAction<T> The action to do when a conflict due to a unique constraint violation happens.@Nullable StringThe unique constraint name for which a constraint violation is allowed.The paths which are part of a unique constraint, for which a constraint violation is allowed.The excluded row/object which was not inserted.inthashCode()onConflictDo(JpaConflictUpdateAction<T> action) Sets the action to do on a conflict.Shorthand version for callingJpaConflictClause.onConflictDo(JpaConflictUpdateAction)withJpaConflictClause.createConflictUpdateAction()as argument and returning the update action.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.criteria.JpaConflictClause
onConflictDoNothingMethods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableTextMethods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmConflictClause
-
-
Method Details
-
getExcludedRoot
Description copied from interface:JpaConflictClauseThe excluded row/object which was not inserted.- Specified by:
getExcludedRootin interfaceJpaConflictClause<T>
-
getConstraintName
Description copied from interface:JpaConflictClauseThe unique constraint name for which a constraint violation is allowed.- Specified by:
getConstraintNamein interfaceJpaConflictClause<T>
-
conflictOnConstraint
Description copied from interface:JpaConflictClauseSets the unique constraint name for which a constraint violation is allowed.- Specified by:
conflictOnConstraintin interfaceJpaConflictClause<T>
-
conflictOnConstraintAttributes
Description copied from interface:JpaConflictClauseShorthand for callingJpaConflictClause.conflictOnConstraintPaths(List)with paths resolved for the given attributes against the insert target.- Specified by:
conflictOnConstraintAttributesin interfaceJpaConflictClause<T>
-
conflictOnConstraintAttributes
Description copied from interface:JpaConflictClauseShorthand for callingJpaConflictClause.conflictOnConstraintPaths(List)with paths resolved for the given attributes against the insert target.- Specified by:
conflictOnConstraintAttributesin interfaceJpaConflictClause<T>
-
conflictOnConstraintPaths
Description copied from interface:JpaConflictClause- Specified by:
conflictOnConstraintPathsin interfaceJpaConflictClause<T>
-
conflictOnConstraintPaths
Description copied from interface:JpaConflictClauseSets the paths which are part of a unique constraint, for which a constraint violation is allowed.- Specified by:
conflictOnConstraintPathsin interfaceJpaConflictClause<T>
-
getConstraintPaths
Description copied from interface:JpaConflictClauseThe paths which are part of a unique constraint, for which a constraint violation is allowed.- Specified by:
getConstraintPathsin interfaceJpaConflictClause<T>
-
createConflictUpdateAction
Description copied from interface:JpaConflictClauseCreate a new conflict update action for this insert statement.- Specified by:
createConflictUpdateActionin interfaceJpaConflictClause<T>- Returns:
- a new conflict update action
- See Also:
-
getConflictAction
Description copied from interface:JpaConflictClauseThe action to do when a conflict due to a unique constraint violation happens.- Specified by:
getConflictActionin interfaceJpaConflictClause<T>
-
onConflictDo
Description copied from interface:JpaConflictClauseSets the action to do on a conflict. Settingnullmeans to do nothing.- Specified by:
onConflictDoin interfaceJpaConflictClause<T>- See Also:
-
onConflictDoUpdate
Description copied from interface:JpaConflictClauseShorthand version for callingJpaConflictClause.onConflictDo(JpaConflictUpdateAction)withJpaConflictClause.createConflictUpdateAction()as argument and returning the update action.- Specified by:
onConflictDoUpdatein interfaceJpaConflictClause<T>
-
nodeBuilder
- Specified by:
nodeBuilderin interfaceSqmNode
-
copy
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
equals
-
hashCode
public int hashCode()
-