Class InPredicateRestrictionProducer
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.internal.inline.InPredicateRestrictionProducer
-
- All Implemented Interfaces:
MatchingIdRestrictionProducer
public class InPredicateRestrictionProducer extends Object implements MatchingIdRestrictionProducer
MatchingIdRestrictionProducer producing a restriction based on an in-values-list predicate. E.g.: ```` delete from entity-table where ( id ) in ( ( 1 ), ( 2 ), ( 3 ), ( 4 ) ) ````
-
-
Constructor Summary
Constructors Constructor Description InPredicateRestrictionProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InListPredicate
produceRestriction(List<?> matchingIdValues, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext)
Produce the restriction predicate
-
-
-
Method Detail
-
produceRestriction
public InListPredicate produceRestriction(List<?> matchingIdValues, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext)
Description copied from interface:MatchingIdRestrictionProducer
Produce the restriction predicate- Specified by:
produceRestriction
in interfaceMatchingIdRestrictionProducer
- Parameters:
matchingIdValues
- The matching id values.mutatingTableReference
- The TableReference for the table being mutatedcolumnsToMatchVisitationSupplier
- The columns against which to restrict the mutations
-
-