Interface SqmInsertStatement<T>
- All Superinterfaces:
CommonAbstractCriteria
,JpaCriteriaBase
,JpaCriteriaInsert<T>
,JpaCriteriaNode
,JpaCteContainer
,JpaManipulationCriteria<T>
,JpaQueryableCriteria<T>
,Serializable
,SqmCteContainer
,SqmDmlStatement<T>
,SqmNode
,SqmQuery<T>
,SqmStatement<T>
,SqmVisitableNode
- All Known Implementing Classes:
AbstractSqmInsertStatement
,SqmInsertSelectStatement
,SqmInsertValuesStatement
The general contract for INSERT statements. At the moment only the INSERT-SELECT
forms is implemented/supported.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.query.sqm.tree.SqmStatement
SqmStatement.ParameterResolutions
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy
(SqmCopyContext context) @Nullable SqmConflictClause<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.setInsertionTargetPaths
(Path<?>... insertionTargetPaths) Sets the insertion target paths.setInsertionTargetPaths
(List<? extends Path<?>> insertionTargetPaths) Sets the insertion target paths.void
visitInsertionTargetPaths
(Consumer<SqmPath<?>> consumer) Methods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getParameters, subquery
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
getRestriction, subquery
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaInsert
createConflictClause, onConflict, onConflict
Methods inherited from interface org.hibernate.query.criteria.JpaCteContainer
getCteCriteria, getCteCriterias, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinct
Methods inherited from interface org.hibernate.query.sqm.tree.cte.SqmCteContainer
getCteStatement, getCteStatements
Methods inherited from interface org.hibernate.query.sqm.tree.SqmDmlStatement
getTarget, setTarget
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilder
Methods inherited from interface org.hibernate.query.sqm.tree.SqmStatement
getQuerySource, getSqmParameters, resolveParameters
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
accept, appendHqlString, toHqlString
-
Method Details
-
getInsertionTargetPaths
Description copied from interface:JpaCriteriaInsert
Returns the insertion target paths.- Specified by:
getInsertionTargetPaths
in interfaceJpaCriteriaInsert<T>
-
setInsertionTargetPaths
Description copied from interface:JpaCriteriaInsert
Sets the insertion target paths.- Specified by:
setInsertionTargetPaths
in interfaceJpaCriteriaInsert<T>
-
setInsertionTargetPaths
Description copied from interface:JpaCriteriaInsert
Sets the insertion target paths.- Specified by:
setInsertionTargetPaths
in interfaceJpaCriteriaInsert<T>
-
copy
-
visitInsertionTargetPaths
-
getConflictClause
@Nullable SqmConflictClause<T> getConflictClause()Description copied from interface:JpaCriteriaInsert
Returns the conflict clause that defines what happens when an insert violates a unique constraint, ornull
if there is none.- Specified by:
getConflictClause
in interfaceJpaCriteriaInsert<T>
-