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
@Incubating public interface JpaCriteriaInsert<T> extends JpaManipulationCriteria<T>
The commonalities between insert-select and insert-values.- Since:
- 6.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JpaConflictClause<T>
createConflictClause()
Create a new conflict clause for this insert statement.@Nullable JpaConflictClause<T>
getConflictClause()
Returns the conflict clause that defines what happens when an insert violates a unique constraint, ornull
if there is none.List<? extends JpaPath<?>>
getInsertionTargetPaths()
Returns the insertion target paths.JpaConflictClause<T>
onConflict()
Sets the conflict clause that defines what happens when an insert violates a unique constraint.JpaCriteriaInsert<T>
onConflict(@Nullable JpaConflictClause<T> conflictClause)
Sets the conflict clause that defines what happens when an insert violates a unique constraint.JpaCriteriaInsert<T>
setInsertionTargetPaths(Path<?>... insertionTargetPaths)
Sets the insertion target paths.JpaCriteriaInsert<T>
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 Detail
-
getInsertionTargetPaths
List<? extends JpaPath<?>> getInsertionTargetPaths()
Returns the insertion target paths.
-
setInsertionTargetPaths
JpaCriteriaInsert<T> setInsertionTargetPaths(Path<?>... insertionTargetPaths)
Sets the insertion target paths.
-
setInsertionTargetPaths
JpaCriteriaInsert<T> setInsertionTargetPaths(List<? extends Path<?>> insertionTargetPaths)
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
JpaCriteriaInsert<T> onConflict(@Nullable JpaConflictClause<T> conflictClause)
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:
onConflict(JpaConflictClause)
-
-