@API(status=STABLE,
since="6.0.2")
public final class ReactiveAuditingBeforeBindCallback
extends Object
implements ReactiveBeforeBindCallback<Object>, Ordered
EntityCallback to populate auditing related fields on an entity about to be bound to a record.| Modifier and Type | Field and Description |
|---|---|
static int |
NEO4J_REACTIVE_AUDITING_ORDER |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ReactiveAuditingBeforeBindCallback(ObjectFactory<ReactiveIsNewAwareAuditingHandler> auditingHandlerFactory)
Creates a new
ReactiveAuditingBeforeBindCallback using the AuditingHandler provided by the given
ObjectFactory. |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
org.reactivestreams.Publisher<Object> |
onBeforeBind(Object entity)
Entity callback method invoked before a domain object is saved.
|
public static final int NEO4J_REACTIVE_AUDITING_ORDER
public ReactiveAuditingBeforeBindCallback(ObjectFactory<ReactiveIsNewAwareAuditingHandler> auditingHandlerFactory)
ReactiveAuditingBeforeBindCallback using the AuditingHandler provided by the given
ObjectFactory.auditingHandlerFactory - must not be null.public org.reactivestreams.Publisher<Object> onBeforeBind(Object entity)
ReactiveBeforeBindCallbackentity to a Map, so the
outcome of this callback is used to create the record for the domain object.onBeforeBind in interface ReactiveBeforeBindCallback<Object>entity - the domain object to save.Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.