Interface PojoImplicitReindexingResolverRootContext
-
- All Superinterfaces:
ContainerExtractionContext
public interface PojoImplicitReindexingResolverRootContext extends ContainerExtractionContext
The context passed to aPojoImplicitReindexingResolverand propagated to everyPojoImplicitReindexingResolverNode.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PojoRawTypeIdentifier<?>detectContainingEntityType(Object containingEntity)booleanisDirtyForReindexingResolution(PojoPathFilter filter)voidpropagateOrIgnorePropertyAccessException(RuntimeException exception)Propagates (rethrows) aRuntimeExceptionthrown while accessing a property (getter or field access), or ignores it so that the property is skipped.PojoImplicitReindexingResolverSessionContextsessionContext()-
Methods inherited from interface org.hibernate.search.mapper.pojo.extractor.ContainerExtractionContext
propagateOrIgnoreContainerExtractionException
-
-
-
-
Method Detail
-
sessionContext
PojoImplicitReindexingResolverSessionContext sessionContext()
- Returns:
- The context for the current session.
-
isDirtyForReindexingResolution
boolean isDirtyForReindexingResolution(PojoPathFilter filter)
- Parameters:
filter- A path filter for dirty paths.- Returns:
- Whether the root is dirty according to the given filter.
-
detectContainingEntityType
PojoRawTypeIdentifier<?> detectContainingEntityType(Object containingEntity)
-
propagateOrIgnorePropertyAccessException
void propagateOrIgnorePropertyAccessException(RuntimeException exception)
Propagates (rethrows) aRuntimeExceptionthrown while accessing a property (getter or field access), or ignores it so that the property is skipped.- Parameters:
exception- ARuntimeExceptionthrown while accessing a property.- See Also:
ValueReadHandle.get(Object)
-
-