@FunctionalInterface public interface ReactiveBeforeSaveCallback<T> extends EntityCallback<T>
ReactiveEntityCallbacks| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<T> |
onBeforeSave(T entity,
org.bson.Document document,
String collection)
Entity callback method invoked before a domain object is saved.
|
org.reactivestreams.Publisher<T> onBeforeSave(T entity, org.bson.Document document, String collection)
Document contents. This method is called after converting the
entity to Document so effectively the document is used as outcome of invoking this callback.entity - the domain object to save.document - Document representing the entity.collection - name of the collection.Publisher emitting the domain object to be persisted.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.