Package org.hibernate.query.criteria
Interface JpaCriteriaInsertSelect<T>
-
- All Superinterfaces:
CommonAbstractCriteria,JpaCriteriaBase,JpaCriteriaInsert<T>,JpaCriteriaNode,JpaCteContainer,JpaManipulationCriteria<T>,JpaQueryableCriteria<T>,Serializable
- All Known Implementing Classes:
SqmInsertSelectStatement
@Incubating public interface JpaCriteriaInsertSelect<T> extends JpaCriteriaInsert<T>
A representation of SqmInsertSelectStatement at theorg.hibernate.query.criterialevel, even though JPA does not define support for insert-select criteria.- See Also:
SqmInsertSelectStatement- 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 JpaCriteriaInsertSelect<T>onConflict(JpaConflictClause<T> conflictClause)Sets the conflict clause that defines what happens when an insert violates a unique constraint.JpaCriteriaInsertSelect<T>select(CriteriaQuery<Tuple> criteriaQuery)-
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
-
select
JpaCriteriaInsertSelect<T> select(CriteriaQuery<Tuple> criteriaQuery)
-
onConflict
JpaCriteriaInsertSelect<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>
-
-