Class SqmInsertValuesStatement<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.SqmInsertValuesStatement<T>
-
- All Implemented Interfaces:
CommonAbstractCriteria,Serializable,JpaCriteriaBase,JpaCriteriaInsert<T>,JpaCriteriaInsertValues<T>,JpaCriteriaNode,JpaCteContainer,JpaManipulationCriteria<T>,JpaQueryableCriteria<T>,ParameterCollector,SqmCteContainer,SqmInsertStatement<T>,SqmDmlStatement<T>,SqmNode,SqmQuery<T>,SqmStatement<T>,SqmVisitableNode
public class SqmInsertValuesStatement<T> extends AbstractSqmInsertStatement<T> implements JpaCriteriaInsertValues<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 SqmInsertValuesStatement(Class<T> targetEntity, NodeBuilder nodeBuilder)SqmInsertValuesStatement(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)SqmInsertValuesStatement<T>copy(SqmCopyContext context)SqmInsertValuesStatement<T>copyWithoutValues(SqmCopyContext context)JpaPredicategetRestriction()List<SqmValues>getValuesList()SqmInsertValuesStatement<T>onConflict(JpaConflictClause<T> conflictClause)Sets the conflict clause that defines what happens when an insert violates a unique constraint.SqmInsertValuesStatement<T>setInsertionTargetPaths(Path<?>... insertionTargetPaths)Sets the insertion target paths.SqmInsertValuesStatement<T>setInsertionTargetPaths(List<? extends Path<?>> insertionTargetPaths)Sets the insertion target paths.voidvalidate(@Nullable String hql)SqmInsertValuesStatement<T>values(List<? extends JpaValues> values)SqmInsertValuesStatement<T>values(JpaValues... values)-
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
-
SqmInsertValuesStatement
public SqmInsertValuesStatement(SqmRoot<T> targetRoot, NodeBuilder nodeBuilder)
-
SqmInsertValuesStatement
public SqmInsertValuesStatement(Class<T> targetEntity, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmInsertValuesStatement<T> copy(SqmCopyContext context)
-
copyWithoutValues
public SqmInsertValuesStatement<T> copyWithoutValues(SqmCopyContext context)
-
validate
public void validate(@Nullable String hql)
- Specified by:
validatein classAbstractSqmDmlStatement<T>
-
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 SqmInsertValuesStatement<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 SqmInsertValuesStatement<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>
-
values
public SqmInsertValuesStatement<T> values(JpaValues... values)
- Specified by:
valuesin interfaceJpaCriteriaInsertValues<T>
-
values
public SqmInsertValuesStatement<T> values(List<? extends JpaValues> values)
- Specified by:
valuesin interfaceJpaCriteriaInsertValues<T>
-
onConflict
public SqmInsertValuesStatement<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 interfaceJpaCriteriaInsertValues<T>- Overrides:
onConflictin classAbstractSqmInsertStatement<T>
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlStringin interfaceSqmVisitableNode- Overrides:
appendHqlStringin classAbstractSqmInsertStatement<T>
-
-