Interface PojoImplicitReindexingResolverRootContext

All Superinterfaces:
ContainerExtractionContext

public interface PojoImplicitReindexingResolverRootContext extends ContainerExtractionContext
The context passed to a PojoImplicitReindexingResolver and propagated to every PojoImplicitReindexingResolverNode.

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 Details

    • 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) a RuntimeException thrown while accessing a property (getter or field access), or ignores it so that the property is skipped.
      Parameters:
      exception - A RuntimeException thrown while accessing a property.
      See Also: