Class AuditingBeforeBindCallback

java.lang.Object
org.springframework.data.neo4j.core.mapping.callback.AuditingBeforeBindCallback
All Implemented Interfaces:
Ordered, EntityCallback<Object>, BeforeBindCallback<Object>

@API(status=STABLE, since="6.0.2") public final class AuditingBeforeBindCallback extends Object implements BeforeBindCallback<Object>, Ordered
EntityCallback to populate auditing related fields on an entity about to be bound to a record.
Since:
6.0.2
Author:
Michael J. Simons
  • Field Details

  • Constructor Details

  • Method Details

    • onBeforeBind

      public Object onBeforeBind(Object entity)
      Description copied from interface: BeforeBindCallback
      Entity callback method invoked before a domain object is saved. Can return either the same or a modified instance of the domain object. This method is called before converting the entity to a Map, so the outcome of this callback is used to create the record for the domain object.
      Specified by:
      onBeforeBind in interface BeforeBindCallback<Object>
      Parameters:
      entity - the domain object to save.
      Returns:
      the domain object to be persisted.
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface Ordered