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
public interface SqmInsertStatement<T> extends SqmDmlStatement<T>, JpaCriteriaInsert<T>
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SqmInsertStatement<T>
copy(SqmCopyContext context)
@Nullable SqmConflictClause<T>
getConflictClause()
Returns the conflict clause that defines what happens when an insert violates a unique constraint, ornull
if there is none.List<SqmPath<?>>
getInsertionTargetPaths()
Returns the insertion target paths.SqmInsertStatement<T>
setInsertionTargetPaths(Path<?>... insertionTargetPaths)
Sets the insertion target paths.SqmInsertStatement<T>
setInsertionTargetPaths(List<? extends Path<?>> insertionTargetPaths)
Sets the insertion target paths.void
visitInsertionTargetPaths(Consumer<SqmPath<?>> consumer)
-
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 Detail
-
getInsertionTargetPaths
List<SqmPath<?>> getInsertionTargetPaths()
Description copied from interface:JpaCriteriaInsert
Returns the insertion target paths.- Specified by:
getInsertionTargetPaths
in interfaceJpaCriteriaInsert<T>
-
setInsertionTargetPaths
SqmInsertStatement<T> setInsertionTargetPaths(Path<?>... insertionTargetPaths)
Description copied from interface:JpaCriteriaInsert
Sets the insertion target paths.- Specified by:
setInsertionTargetPaths
in interfaceJpaCriteriaInsert<T>
-
setInsertionTargetPaths
SqmInsertStatement<T> setInsertionTargetPaths(List<? extends Path<?>> insertionTargetPaths)
Description copied from interface:JpaCriteriaInsert
Sets the insertion target paths.- Specified by:
setInsertionTargetPaths
in interfaceJpaCriteriaInsert<T>
-
copy
SqmInsertStatement<T> copy(SqmCopyContext context)
-
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>
-
-