Interface PojoImplicitReindexingResolver<T>
- Type Parameters:
T- The type of entities this object is able to handle.
- All Superinterfaces:
AutoCloseable,ToStringTreeAppendable
- All Known Implementing Classes:
PojoImplicitReindexingResolverImpl
An object responsible for resolving the set of entities that should be reindexed when a given entity changes.
This includes telling whether changes require the changed entity to be reindexed, but also retrieving all entities that use the changed entity in their indexed form so that they can be reindexed by Hibernate Search.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidresolveEntitiesToReindex(PojoReindexingCollector collector, T dirty, PojoImplicitReindexingResolverRootContext context) Adds all entities that should be reindexed tocollector, taking into account the given "dirty entity" and the context describing its "dirtiness".Methods inherited from interface org.hibernate.search.util.common.spi.ToStringTreeAppendable
appendTo, toStringTree
-
Method Details
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-
dirtySelfFilter
PojoPathFilter dirtySelfFilter()- Returns:
- A path filter that only accepts paths whose dirtiness would require reindexing the dirty entity.
-
dirtySelfOrContainingFilter
PojoPathFilter dirtySelfOrContainingFilter()- Returns:
- A path filter that only accepts paths whose dirtiness would require reindexing the dirty entity OR an associated entity that contains it.
-
resolveEntitiesToReindex
void resolveEntitiesToReindex(PojoReindexingCollector collector, T dirty, PojoImplicitReindexingResolverRootContext context) Adds all entities that should be reindexed tocollector, taking into account the given "dirty entity" and the context describing its "dirtiness".- Parameters:
collector- A collector for dirty entities that should be reindexed.dirty- The entity whose dirtiness is to be checked.context- A context related to the entity root
-
associationInverseSideResolver
PojoImplicitReindexingAssociationInverseSideResolver associationInverseSideResolver()- Returns:
- A path filter that only accepts direct paths to associations to containing entities.
-