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 List<Expression>
produceIdExpressionList(List<Object> idsAndFks, EntityMappingType entityDescriptor)
Produces a list of expression for which a restriction can be produced per-table.InListPredicate
produceRestriction(List<Expression> matchingIdValueExpressions, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext)
Produce the restriction predicate
-
-
-
Method Detail
-
produceIdExpressionList
public List<Expression> produceIdExpressionList(List<Object> idsAndFks, EntityMappingType entityDescriptor)
Description copied from interface:MatchingIdRestrictionProducer
Produces a list of expression for which a restriction can be produced per-table.- Specified by:
produceIdExpressionList
in interfaceMatchingIdRestrictionProducer
-
produceRestriction
public InListPredicate produceRestriction(List<Expression> matchingIdValueExpressions, 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:
matchingIdValueExpressions
- The matching id value expressions.mutatingTableReference
- The TableReference for the table being mutatedcolumnsToMatchVisitationSupplier
- The columns against which to restrict the mutations
-
-