Class SqmInsertSelectStatement<T>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.AbstractSqmStatement<E>
org.hibernate.query.sqm.tree.AbstractSqmDmlStatement<T>
org.hibernate.query.sqm.tree.insert.AbstractSqmInsertStatement<T>
org.hibernate.query.sqm.tree.insert.SqmInsertSelectStatement<T>
- All Implemented Interfaces:
CommonAbstractCriteria
,Serializable
,JpaCriteriaBase
,JpaCriteriaInsert<T>
,JpaCriteriaInsertSelect<T>
,JpaCriteriaNode
,JpaCteContainer
,JpaManipulationCriteria<T>
,JpaQueryableCriteria<T>
,ParameterCollector
,SqmCteContainer
,SqmInsertStatement<T>
,SqmDmlStatement<T>
,SqmNode
,SqmQuery<T>
,SqmStatement<T>
,SqmVisitableNode
@Incubating
public class SqmInsertSelectStatement<T>
extends AbstractSqmInsertStatement<T>
implements JpaCriteriaInsertSelect<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.query.sqm.tree.SqmStatement
SqmStatement.ParameterResolutions
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmInsertSelectStatement
(Class<T> targetEntity, NodeBuilder nodeBuilder) SqmInsertSelectStatement
(SqmRoot<T> targetRoot, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<X> X
accept
(SemanticQueryWalker<X> walker) Accept the walker per visitationvoid
copy
(SqmCopyContext context) SqmQueryPart<?>
onConflict
(JpaConflictClause<T> conflictClause) Sets the conflict clause that defines what happens when an insert violates a unique constraint.select
(CriteriaQuery<Tuple> criteriaQuery) setInsertionTargetPaths
(Path<?>... insertionTargetPaths) Sets the insertion target paths.setInsertionTargetPaths
(List<? extends Path<?>> insertionTargetPaths) Sets the insertion target paths.void
setSelectQueryPart
(SqmQueryPart<?> selectQueryPart) <U> Subquery<U>
subquery
(EntityType<U> type) void
Methods inherited from class org.hibernate.query.sqm.tree.insert.AbstractSqmInsertStatement
addInsertTargetStateField, copyInsertionTargetPaths, createConflictClause, getConflictClause, getInsertionTargetPaths, onConflict, setTarget, verifyInsertTypesMatch, visitInsertionTargetPaths
Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmDmlStatement
appendHqlCteString, copyCteStatements, getCteCriteria, getCteCriterias, getCteStatement, getCteStatements, getTarget, putAllCtes, subquery, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinct
Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmStatement
addParameter, copyParameters, getQuerySource, getSqmParameters, resolveParameters
Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmNode
nodeBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
subquery
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaInsert
createConflictClause, 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
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
toHqlString
-
Constructor Details
-
SqmInsertSelectStatement
-
SqmInsertSelectStatement
-
-
Method Details
-
copy
-
validate
- Specified by:
validate
in classAbstractSqmDmlStatement<T>
-
select
- Specified by:
select
in interfaceJpaCriteriaInsertSelect<T>
-
getSelectQueryPart
-
setSelectQueryPart
-
accept
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
subquery
- Specified by:
subquery
in interfaceCommonAbstractCriteria
-
getRestriction
- Specified by:
getRestriction
in interfaceCommonAbstractCriteria
- Specified by:
getRestriction
in interfaceJpaCriteriaBase
-
getParameters
- Specified by:
getParameters
in interfaceCommonAbstractCriteria
- Overrides:
getParameters
in classAbstractSqmStatement<T>
-
setInsertionTargetPaths
Description copied from interface:JpaCriteriaInsert
Sets the insertion target paths.- Specified by:
setInsertionTargetPaths
in interfaceJpaCriteriaInsert<T>
- Specified by:
setInsertionTargetPaths
in interfaceSqmInsertStatement<T>
- Overrides:
setInsertionTargetPaths
in classAbstractSqmInsertStatement<T>
-
setInsertionTargetPaths
public SqmInsertSelectStatement<T> setInsertionTargetPaths(List<? extends Path<?>> insertionTargetPaths) Description copied from interface:JpaCriteriaInsert
Sets the insertion target paths.- Specified by:
setInsertionTargetPaths
in interfaceJpaCriteriaInsert<T>
- Specified by:
setInsertionTargetPaths
in interfaceSqmInsertStatement<T>
- Overrides:
setInsertionTargetPaths
in classAbstractSqmInsertStatement<T>
-
onConflict
Description copied from interface:JpaCriteriaInsert
Sets the conflict clause that defines what happens when an insert violates a unique constraint.- Specified by:
onConflict
in interfaceJpaCriteriaInsert<T>
- Specified by:
onConflict
in interfaceJpaCriteriaInsertSelect<T>
- Overrides:
onConflict
in classAbstractSqmInsertStatement<T>
-
appendHqlString
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
- Overrides:
appendHqlString
in classAbstractSqmInsertStatement<T>
-