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> X
accept
(SemanticQueryWalker<X> walker) Accept the walker per visitationvoid
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.@Nullable SqmConflictUpdateAction<T>
The action to do when a conflict due to a unique constraint violation happens.@Nullable String
The 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.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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.criteria.JpaConflictClause
onConflictDoNothing
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmConflictClause
-
-
Method Details
-
getExcludedRoot
Description copied from interface:JpaConflictClause
The excluded row/object which was not inserted.- Specified by:
getExcludedRoot
in interfaceJpaConflictClause<T>
-
getConstraintName
Description copied from interface:JpaConflictClause
The unique constraint name for which a constraint violation is allowed.- Specified by:
getConstraintName
in interfaceJpaConflictClause<T>
-
conflictOnConstraint
Description copied from interface:JpaConflictClause
Sets the unique constraint name for which a constraint violation is allowed.- Specified by:
conflictOnConstraint
in interfaceJpaConflictClause<T>
-
conflictOnConstraintAttributes
Description copied from interface:JpaConflictClause
Shorthand for callingJpaConflictClause.conflictOnConstraintPaths(List)
with paths resolved for the given attributes against the insert target.- Specified by:
conflictOnConstraintAttributes
in interfaceJpaConflictClause<T>
-
conflictOnConstraintAttributes
Description copied from interface:JpaConflictClause
Shorthand for callingJpaConflictClause.conflictOnConstraintPaths(List)
with paths resolved for the given attributes against the insert target.- Specified by:
conflictOnConstraintAttributes
in interfaceJpaConflictClause<T>
-
conflictOnConstraintPaths
Description copied from interface:JpaConflictClause
- Specified by:
conflictOnConstraintPaths
in interfaceJpaConflictClause<T>
-
conflictOnConstraintPaths
Description copied from interface:JpaConflictClause
Sets the paths which are part of a unique constraint, for which a constraint violation is allowed.- Specified by:
conflictOnConstraintPaths
in interfaceJpaConflictClause<T>
-
getConstraintPaths
Description copied from interface:JpaConflictClause
The paths which are part of a unique constraint, for which a constraint violation is allowed.- Specified by:
getConstraintPaths
in interfaceJpaConflictClause<T>
-
createConflictUpdateAction
Description copied from interface:JpaConflictClause
Create a new conflict update action for this insert statement.- Specified by:
createConflictUpdateAction
in interfaceJpaConflictClause<T>
- Returns:
- a new conflict update action
- See Also:
-
getConflictAction
Description copied from interface:JpaConflictClause
The action to do when a conflict due to a unique constraint violation happens.- Specified by:
getConflictAction
in interfaceJpaConflictClause<T>
-
onConflictDo
Description copied from interface:JpaConflictClause
Sets the action to do on a conflict. Settingnull
means to do nothing.- Specified by:
onConflictDo
in interfaceJpaConflictClause<T>
- See Also:
-
onConflictDoUpdate
Description copied from interface:JpaConflictClause
Shorthand version for callingJpaConflictClause.onConflictDo(JpaConflictUpdateAction)
withJpaConflictClause.createConflictUpdateAction()
as argument and returning the update action.- Specified by:
onConflictDoUpdate
in interfaceJpaConflictClause<T>
-
nodeBuilder
- Specified by:
nodeBuilder
in interfaceSqmNode
-
copy
-
accept
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
appendHqlString
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-