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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.query.sqm.tree.SqmStatement
SqmStatement.ParameterResolutions
-
-
Constructor Summary
Constructors Constructor Description SqmInsertSelectStatement(Class<T> targetEntity, NodeBuilder nodeBuilder)SqmInsertSelectStatement(SqmRoot<T> targetRoot, NodeBuilder nodeBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> Xaccept(SemanticQueryWalker<X> walker)Accept the walker per visitationvoidappendHqlString(StringBuilder sb)SqmInsertSelectStatement<T>copy(SqmCopyContext context)JpaPredicategetRestriction()SqmQueryPart<?>getSelectQueryPart()SqmInsertSelectStatement<T>onConflict(JpaConflictClause<T> conflictClause)Sets the conflict clause that defines what happens when an insert violates a unique constraint.SqmInsertSelectStatement<T>select(CriteriaQuery<Tuple> criteriaQuery)SqmInsertSelectStatement<T>setInsertionTargetPaths(Path<?>... insertionTargetPaths)Sets the insertion target paths.SqmInsertSelectStatement<T>setInsertionTargetPaths(List<? extends Path<?>> insertionTargetPaths)Sets the insertion target paths.voidsetSelectQueryPart(SqmQueryPart<?> selectQueryPart)voidvalidate(@Nullable String hql)-
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 Detail
-
SqmInsertSelectStatement
public SqmInsertSelectStatement(SqmRoot<T> targetRoot, NodeBuilder nodeBuilder)
-
SqmInsertSelectStatement
public SqmInsertSelectStatement(Class<T> targetEntity, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmInsertSelectStatement<T> copy(SqmCopyContext context)
-
validate
public void validate(@Nullable String hql)
- Specified by:
validatein classAbstractSqmDmlStatement<T>
-
select
public SqmInsertSelectStatement<T> select(CriteriaQuery<Tuple> criteriaQuery)
- Specified by:
selectin interfaceJpaCriteriaInsertSelect<T>
-
getSelectQueryPart
public SqmQueryPart<?> getSelectQueryPart()
-
setSelectQueryPart
public void setSelectQueryPart(SqmQueryPart<?> selectQueryPart)
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
getRestriction
public JpaPredicate getRestriction()
- Specified by:
getRestrictionin interfaceCommonAbstractCriteria- Specified by:
getRestrictionin interfaceJpaCriteriaBase
-
setInsertionTargetPaths
public SqmInsertSelectStatement<T> setInsertionTargetPaths(Path<?>... insertionTargetPaths)
Description copied from interface:JpaCriteriaInsertSets the insertion target paths.- Specified by:
setInsertionTargetPathsin interfaceJpaCriteriaInsert<T>- Specified by:
setInsertionTargetPathsin interfaceSqmInsertStatement<T>- Overrides:
setInsertionTargetPathsin classAbstractSqmInsertStatement<T>
-
setInsertionTargetPaths
public SqmInsertSelectStatement<T> setInsertionTargetPaths(List<? extends Path<?>> insertionTargetPaths)
Description copied from interface:JpaCriteriaInsertSets the insertion target paths.- Specified by:
setInsertionTargetPathsin interfaceJpaCriteriaInsert<T>- Specified by:
setInsertionTargetPathsin interfaceSqmInsertStatement<T>- Overrides:
setInsertionTargetPathsin classAbstractSqmInsertStatement<T>
-
onConflict
public SqmInsertSelectStatement<T> onConflict(JpaConflictClause<T> conflictClause)
Description copied from interface:JpaCriteriaInsertSets the conflict clause that defines what happens when an insert violates a unique constraint.- Specified by:
onConflictin interfaceJpaCriteriaInsert<T>- Specified by:
onConflictin interfaceJpaCriteriaInsertSelect<T>- Overrides:
onConflictin classAbstractSqmInsertStatement<T>
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlStringin interfaceSqmVisitableNode- Overrides:
appendHqlStringin classAbstractSqmInsertStatement<T>
-
-