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.
@FunctionalInterface public static interface InsertRowsCoordinator.EntryFilter
A tri-predicate for including / excluding collection entries from iterative processing insideInsertRowsCoordinator.insertRows(org.hibernate.collection.spi.PersistentCollection<?>, java.lang.Object, org.hibernate.persister.collection.mutation.InsertRowsCoordinator.EntryFilter, org.hibernate.engine.spi.SharedSessionContractImplementor)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
exclude(Object entry, int i, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor)
boolean
include(Object entry, int position, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor)
Whether the entry should be included
-
-
-
Method Detail
-
include
boolean include(Object entry, int position, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor)
Whether the entry should be included- Returns:
true
indicates the entry should be included andfalse
indicates 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,true
indicates exclusion andfalse
indicates inclusion
-
-