Interface InsertRowsCoordinator.EntryFilter
- Enclosing interface:
- InsertRowsCoordinator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A tri-predicate for including / excluding collection entries
from iterative processing inside
InsertRowsCoordinator.insertRows(org.hibernate.collection.spi.PersistentCollection<?>, java.lang.Object, org.hibernate.persister.collection.mutation.InsertRowsCoordinator.EntryFilter, org.hibernate.engine.spi.SharedSessionContractImplementor).-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanexclude(Object entry, int i, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor) booleaninclude(Object entry, int position, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor) Whether the entry should be included
-
Method Details
-
include
boolean include(Object entry, int position, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor) Whether the entry should be included- Returns:
trueindicates the entry should be included andfalseindicates it should be excluded
-
exclude
default boolean exclude(Object entry, int i, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor) The inverse ofinclude(java.lang.Object, int, org.hibernate.collection.spi.PersistentCollection<?>, org.hibernate.metamodel.mapping.PluralAttributeMapping). Here,trueindicates exclusion andfalseindicates inclusion
-