Interface AfterConvertCallback<T>

Type Parameters:
T - The type of the entity.
All Superinterfaces:
EntityCallback<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @API(status=STABLE, since="6.3.0") public interface AfterConvertCallback<T> extends EntityCallback<T>
A callback that can be used to modify an instance of a Neo4jPersistentEntity after it has been converted: That is, when a Neo4j record has been fully processed and the entity and all its associations have been processed.

There is no reactive variant for this callback. It is safe to use this one for both reactive and imperative workloads.

Since:
6.3.0
Author:
Michael J. Simons
  • Method Summary

    Modifier and Type
    Method
    Description
    onAfterConvert(T instance, Neo4jPersistentEntity<T> entity, org.neo4j.driver.types.MapAccessor source)
    Invoked after converting a Neo4j record (aka after hydrating an entity).
  • Method Details

    • onAfterConvert

      T onAfterConvert(T instance, Neo4jPersistentEntity<T> entity, org.neo4j.driver.types.MapAccessor source)
      Invoked after converting a Neo4j record (aka after hydrating an entity).
      Parameters:
      instance - The instance as hydrated by the Neo4jEntityConverter.
      entity - The entity definition
      source - The Neo4j record that was used to hydrate the instance.
      Returns:
      the domain object used further