Class InPredicateRestrictionProducer
java.lang.Object
org.hibernate.query.sqm.mutation.internal.inline.InPredicateRestrictionProducer
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionproduceIdExpressionList
(List<Object> idsAndFks, EntityMappingType entityDescriptor) Produces a list of expression for which a restriction can be produced per-table.produceRestriction
(List<Expression> matchingIdValueExpressions, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext) Produce the restriction predicate
-
Constructor Details
-
InPredicateRestrictionProducer
public InPredicateRestrictionProducer()
-
-
Method Details
-
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
-