Class SqmInsertValuesStatement<T>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.AbstractSqmStatement<T>
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>, org.hibernate.query.sqm.internal.ParameterCollector, SqmCteContainer, SqmInsertStatement<T>, SqmCacheable, SqmDmlStatement<T>, SqmNode, SqmQuery<T>, SqmStatement<T>, SqmVisitableNode
public class SqmInsertValuesStatement<T>
extends AbstractSqmInsertStatement<T>
implements JpaCriteriaInsertValues<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface SqmStatement
SqmStatement.ParameterResolutions -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmInsertValuesStatement(Class<T> targetEntity, NodeBuilder nodeBuilder) SqmInsertValuesStatement(SqmRoot<T> targetRoot, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) intcopy(SqmCopyContext context) copyWithoutValues(SqmCopyContext context) boolean@Nullable JpaPredicateinthashCode()booleanisCompatible(Object object) onConflict(@Nullable JpaConflictClause<T> conflictClause) Sets the conflict clause that defines what happens when an insert violates a unique constraint.setInsertionTargetPaths(Path<?>... insertionTargetPaths) Sets the insertion target paths.setInsertionTargetPaths(@Nullable List<? extends Path<?>> insertionTargetPaths) Sets the insertion target paths.<U> Subquery<U> subquery(EntityType<U> type) voidMethods inherited from class AbstractSqmInsertStatement
addInsertTargetStateField, copyInsertionTargetPaths, createConflictClause, getConflictClause, getInsertionTargetPaths, onConflict, setTarget, verifyInsertTypesMatch, visitInsertionTargetPathsMethods inherited from class AbstractSqmDmlStatement
appendHqlCteString, copyCteStatements, getCteCriteria, getCteCriterias, getCteStatement, getCteStatements, getTarget, putAllCtes, subquery, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinctMethods inherited from class AbstractSqmStatement
addParameter, copyParameters, generateAlias, getParameters, getQuerySource, getSqmParameters, resolveParametersMethods inherited from class AbstractSqmNode
nodeBuilderMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommonAbstractCriteria
getParametersMethods inherited from interface JpaCriteriaBase
subqueryMethods inherited from interface JpaCriteriaInsert
createConflictClause, onConflictMethods inherited from interface JpaCteContainer
getCteCriteria, getCteCriterias, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinctMethods inherited from interface SqmCteContainer
getCteStatement, getCteStatementsMethods inherited from interface SqmDmlStatement
getTargetMethods inherited from interface SqmNode
asLoggableText, nodeBuilderMethods inherited from interface SqmQuery
generateAliasMethods inherited from interface SqmStatement
getQuerySource, getSqmParameters, resolveParametersMethods inherited from interface SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmInsertValuesStatement
-
SqmInsertValuesStatement
-
-
Method Details
-
copy
-
copyWithoutValues
-
validate
- Specified by:
validatein classAbstractSqmDmlStatement<T>
-
getValuesList
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
subquery
- Specified by:
subqueryin interfaceCommonAbstractCriteria
-
getRestriction
- Specified by:
getRestrictionin interfaceCommonAbstractCriteria- Specified by:
getRestrictionin interfaceJpaCriteriaBase
-
setInsertionTargetPaths
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(@Nullable 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
- Specified by:
valuesin interfaceJpaCriteriaInsertValues<T>
-
values
- Specified by:
valuesin interfaceJpaCriteriaInsertValues<T>
-
onConflict
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
- Specified by:
appendHqlStringin interfaceSqmVisitableNode- Overrides:
appendHqlStringin classAbstractSqmInsertStatement<T>
-
equals
- Overrides:
equalsin classAbstractSqmInsertStatement<T>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractSqmInsertStatement<T>
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable- Overrides:
isCompatiblein classAbstractSqmInsertStatement<T>
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable- Overrides:
cacheHashCodein classAbstractSqmInsertStatement<T>
-