@FunctionalInterface public interface BeforeSaveCallback<T> extends EntityCallback<T>
ReactiveEntityCallbacks| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<T> |
onBeforeSave(T entity,
OutboundRow row,
org.springframework.data.relational.core.sql.SqlIdentifier table)
Entity callback method invoked before a domain object is saved.
|
org.reactivestreams.Publisher<T> onBeforeSave(T entity, OutboundRow row, org.springframework.data.relational.core.sql.SqlIdentifier table)
OutboundRow contents. This method is called after converting the
entity to a OutboundRow so effectively the row is used as outcome of invoking this callback.
Changes to the domain object are not taken into account for saving, only changes to the row. Only transient fields
of the entity should be changed in this callback. To change persistent the entity before being converted, use the
BeforeConvertCallback.entity - the domain object to save.row - OutboundRow representing the entity.table - name of the table.Copyright © 2018–2021 Pivotal Software, Inc.. All rights reserved.