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, ornullif 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 CommonAbstractCriteria
getParameters, subqueryMethods inherited from interface JpaCriteriaBase
getRestriction, subqueryMethods inherited from interface JpaCteContainer
getCteCriteria, getCteCriterias, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinctMethods inherited from interface JpaManipulationCriteria
getTarget, setTarget
-
Method Details
-
getInsertionTargetPaths
-
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, ornullif there is none. -
createConflictClause
JpaConflictClause<T> createConflictClause()Create a new conflict clause for this insert statement.- Returns:
- a new conflict clause
- See Also:
-