Package org.hibernate.query.criteria
Interface JpaCriteriaInsertValues<T>
-
- All Superinterfaces:
CommonAbstractCriteria
,JpaCriteriaBase
,JpaCriteriaInsert<T>
,JpaCriteriaNode
,JpaCteContainer
,JpaManipulationCriteria<T>
,JpaQueryableCriteria<T>
,Serializable
- All Known Implementing Classes:
SqmInsertValuesStatement
@Incubating public interface JpaCriteriaInsertValues<T> extends JpaCriteriaInsert<T>
A representation of SqmInsertValuesStatement at theorg.hibernate.query.criteria
level, even though JPA does not define support for insert-values criteria.- See Also:
SqmInsertValuesStatement
- API Note:
- Incubating mainly for 2 purposes:
-
to decide how to handle the typing for the "selection part". Should it
be
<T>
or<X>
. For the time being we expose it as<T>
because that is what was done (without intention) originally, and it is the easiest form to validate - Would be better to expose non-SQM contracts here
-
to decide how to handle the typing for the "selection part". Should it
be
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JpaCriteriaInsertValues<T>
onConflict(JpaConflictClause<T> conflictClause)
Sets the conflict clause that defines what happens when an insert violates a unique constraint.JpaCriteriaInsertValues<T>
values(List<? extends JpaValues> values)
JpaCriteriaInsertValues<T>
values(JpaValues... values)
-
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
getRestriction, subquery
-
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaInsert
createConflictClause, getConflictClause, getInsertionTargetPaths, onConflict, setInsertionTargetPaths, setInsertionTargetPaths
-
Methods inherited from interface org.hibernate.query.criteria.JpaCteContainer
getCteCriteria, getCteCriterias, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinct
-
Methods inherited from interface org.hibernate.query.criteria.JpaManipulationCriteria
getTarget, setTarget
-
-
-
-
Method Detail
-
values
JpaCriteriaInsertValues<T> values(JpaValues... values)
-
values
JpaCriteriaInsertValues<T> values(List<? extends JpaValues> values)
-
onConflict
JpaCriteriaInsertValues<T> onConflict(JpaConflictClause<T> conflictClause)
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>
-
-