Class StandardQueryMutationRenderingSupport
java.lang.Object
org.hibernate.dialect.sql.ast.spi.StandardQueryMutationRenderingSupport
- All Implemented Interfaces:
QueryMutationRenderingSupport
public final class StandardQueryMutationRenderingSupport
extends Object
implements QueryMutationRenderingSupport
Standard immutable query-mutation rendering profiles.
STANDARD honors native mutation capabilities. The named family profiles
select their configured update form whenever a nontrivial from-clause is
present, allowing a family to own nonstandard native or emulation grammar.
- Since:
- 8.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QueryMutationRenderingSupportUse an inline view for updates containing a nontrivial from-clause.static final QueryMutationRenderingSupportUse merge for updates containing a nontrivial from-clause.static final QueryMutationRenderingSupportUse native capabilities and the generic scalar-subquery or join fallbacks.static final QueryMutationRenderingSupportUse tuple assignment for updates containing a nontrivial from-clause. -
Method Summary
Modifier and TypeMethodDescriptionSelect a non-null native or emulation plan for a query delete.Select a non-null native or emulation plan for a query update.withNonTrivialUpdatePlan(UpdateRenderingPlan updatePlan) Create a profile with the given nontrivial update plan and standard delete emulation.withTargetAliasedDelete(UpdateRenderingPlan updatePlan, String targetAlias) Create a profile with the given update emulation and target-aliased delete emulation.withTargetAliasedScalarSubquery(String targetAlias) Create a profile using the same target alias for correlated scalar-update assignments and delete join emulation.
-
Field Details
-
STANDARD
Use native capabilities and the generic scalar-subquery or join fallbacks. -
MERGE
Use merge for updates containing a nontrivial from-clause. -
INLINE_VIEW
Use an inline view for updates containing a nontrivial from-clause. -
TUPLE_SET
Use tuple assignment for updates containing a nontrivial from-clause.
-
-
Method Details
-
withNonTrivialUpdatePlan
public static QueryMutationRenderingSupport withNonTrivialUpdatePlan(UpdateRenderingPlan updatePlan) Create a profile with the given nontrivial update plan and standard delete emulation. -
withTargetAliasedDelete
public static QueryMutationRenderingSupport withTargetAliasedDelete(UpdateRenderingPlan updatePlan, String targetAlias) Create a profile with the given update emulation and target-aliased delete emulation. -
withTargetAliasedScalarSubquery
Create a profile using the same target alias for correlated scalar-update assignments and delete join emulation. -
determineUpdatePlan
Description copied from interface:QueryMutationRenderingSupportSelect a non-null native or emulation plan for a query update.- Specified by:
determineUpdatePlanin interfaceQueryMutationRenderingSupport
-
determineDeletePlan
Description copied from interface:QueryMutationRenderingSupportSelect a non-null native or emulation plan for a query delete.- Specified by:
determineDeletePlanin interfaceQueryMutationRenderingSupport
-