Top Description Methods
org.hibernate.query.sqm.mutation.internal.inline

public Interface MatchingIdRestrictionProducer

Known Direct Implementers
org.hibernate.query.sqm.mutation.internal.inline.InPredicateRestrictionProducer
Imports
java.util.List, java.util.function.Consumer, .Supplier, org.hibernate.metamodel.mapping.ModelPart, .SelectableConsumer, .EntityMappingType, org.hibernate.sql.ast.tree.from.TableReference, org.hibernate.sql.ast.tree.predicate.Predicate, org.hibernate.sql.exec.spi.ExecutionContext

Strategy (pattern) for producing the restriction used when mutating a particular table in the group of tables
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Predicate
produceRestriction(List<?>
The matching id values.
matchingIdValues
,
EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference
The TableReference for the table being mutated
mutatingTableReference
,
Supplier<Consumer<SelectableConsumer>>
The columns against which to restrict the mutations
columnsToMatchVisitationSupplier
,
ExecutionContext executionContext)

Produce the restriction predicate

Method Detail

produceRestrictionback to summary
public Predicate produceRestriction(List<?> matchingIdValues, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext)

Produce the restriction predicate

Parameters
matchingIdValues:List<?>

The matching id values.

mutatingTableReference:TableReference

The TableReference for the table being mutated

columnsToMatchVisitationSupplier:Supplier<Consumer<SelectableConsumer>>

The columns against which to restrict the mutations