Interface MatchingIdRestrictionProducer

All Known Implementing Classes:
InPredicateRestrictionProducer

public interface MatchingIdRestrictionProducer
Strategy (pattern) for producing the restriction used when mutating a particular table in the group of tables
  • Method Details

    • produceIdExpressionList

      List<Expression> produceIdExpressionList(List<Object> idsAndFks, EntityMappingType entityDescriptor)
      Produces a list of expression for which a restriction can be produced per-table.
    • produceRestriction

      Predicate produceRestriction(List<Expression> idExpressions, EntityMappingType entityDescriptor, int valueIndex, ModelPart valueModelPart, TableReference mutatingTableReference, Supplier<Consumer<SelectableConsumer>> columnsToMatchVisitationSupplier, ExecutionContext executionContext)
      Produce the restriction predicate
      Parameters:
      idExpressions - The matching id value expressions.
      mutatingTableReference - The TableReference for the table being mutated
      columnsToMatchVisitationSupplier - The columns against which to restrict the mutations