Interface AfterSaveCallback<T>

All Superinterfaces:
org.springframework.data.mapping.callback.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 public interface AfterSaveCallback<T> extends org.springframework.data.mapping.callback.EntityCallback<T>
Entity callback triggered after save of a OutboundRow.
Since:
1.2
Author:
Mark Paluch
See Also:
  • ReactiveEntityCallbacks
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<T>
    onAfterSave(T entity, OutboundRow outboundRow, SqlIdentifier table)
    Entity callback method invoked after a domain object is saved.
  • Method Details

    • onAfterSave

      org.reactivestreams.Publisher<T> onAfterSave(T entity, OutboundRow outboundRow, SqlIdentifier table)
      Entity callback method invoked after a domain object is saved. Can return either the same or a modified instance of the domain object.
      Parameters:
      entity - the domain object that was saved.
      outboundRow - OutboundRow representing the entity.
      table - name of the table.
      Returns:
      the domain object that was persisted.