Package org.hibernate.query.criteria
Interface JpaCriteriaInsert<T>
- All Superinterfaces:
CommonAbstractCriteria
,JpaCriteriaBase
,JpaCriteriaNode
,JpaCteContainer
,JpaManipulationCriteria<T>
,JpaQueryableCriteria<T>
,Serializable
- All Known Subinterfaces:
JpaCriteriaInsertSelect<T>
,JpaCriteriaInsertValues<T>
,SqmInsertStatement<T>
- All Known Implementing Classes:
AbstractSqmInsertStatement
,SqmInsertSelectStatement
,SqmInsertValuesStatement
The commonalities between insert-select and insert-values.
- Since:
- 6.5
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new conflict clause for this insert statement.@Nullable JpaConflictClause<T>
Returns the conflict clause that defines what happens when an insert violates a unique constraint, ornull
if there is none.Returns the insertion target paths.Sets the conflict clause that defines what happens when an insert violates a unique constraint.onConflict
(@Nullable JpaConflictClause<T> conflictClause) Sets the conflict clause that defines what happens when an insert violates a unique constraint.setInsertionTargetPaths
(Path<?>... insertionTargetPaths) Sets the insertion target paths.setInsertionTargetPaths
(List<? extends Path<?>> insertionTargetPaths) Sets the insertion target paths.Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
getRestriction, subquery
Methods inherited from interface org.hibernate.query.criteria.JpaCteContainer
getCteCriteria, getCteCriterias, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinct
Methods inherited from interface org.hibernate.query.criteria.JpaManipulationCriteria
getTarget, setTarget
-
Method Details
-
getInsertionTargetPaths
Returns the insertion target paths. -
setInsertionTargetPaths
Sets the insertion target paths. -
setInsertionTargetPaths
Sets the insertion target paths. -
onConflict
JpaConflictClause<T> onConflict()Sets the conflict clause that defines what happens when an insert violates a unique constraint. -
onConflict
Sets the conflict clause that defines what happens when an insert violates a unique constraint. -
getConflictClause
@Nullable JpaConflictClause<T> getConflictClause()Returns the conflict clause that defines what happens when an insert violates a unique constraint, ornull
if there is none. -
createConflictClause
JpaConflictClause<T> createConflictClause()Create a new conflict clause for this insert statement.- Returns:
- a new conflict clause
- See Also:
-