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

public Class InPredicateRestrictionProducer

extends Object
implements MatchingIdRestrictionProducer
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.mutation.internal.inline.MatchingIdRestrictionProducer
Imports
java.util.ArrayList, .List, java.util.function.Consumer, .Supplier, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.mapping.BasicValuedModelPart, .ModelPart, .SelectableConsumer, .EntityIdentifierMapping, .EntityMappingType, .JdbcMapping, org.hibernate.sql.ast.tree.expression.ColumnReference, .Expression, .JdbcLiteral, .SqlTuple, org.hibernate.sql.ast.tree.from.TableReference, org.hibernate.sql.ast.tree.predicate.InListPredicate, org.hibernate.sql.exec.spi.ExecutionContext

MatchingIdRestrictionProducer producing a restriction based on an in-values-list predicate. E.g.: ```` delete from entity-table where ( id ) in ( ( 1 ), ( 2 ), ( 3 ), ( 4 ) ) ````
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public InListPredicate
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)

Implements org.hibernate.query.sqm.mutation.internal.inline.MatchingIdRestrictionProducer.produceRestriction.

Produce the restriction predicate
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InPredicateRestrictionProducerback to summary
public InPredicateRestrictionProducer()

Method Detail

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

Implements org.hibernate.query.sqm.mutation.internal.inline.MatchingIdRestrictionProducer.produceRestriction.

Doc from org.hibernate.query.sqm.mutation.internal.inline.MatchingIdRestrictionProducer.produceRestriction.

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

Annotations
@Override