@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.| Modifier and Type | Field and Description |
|---|---|
static int |
NEO4J_AUDITING_ORDER |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
AuditingBeforeBindCallback(ObjectFactory<IsNewAwareAuditingHandler> auditingHandlerFactory)
Creates a new
AuditingBeforeBindCallback using the given AuditingHandler provided by the given
ObjectFactory. |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
Object |
onBeforeBind(Object entity)
Entity callback method invoked before a domain object is saved.
|
public static final int NEO4J_AUDITING_ORDER
public AuditingBeforeBindCallback(ObjectFactory<IsNewAwareAuditingHandler> auditingHandlerFactory)
AuditingBeforeBindCallback using the given AuditingHandler provided by the given
ObjectFactory.auditingHandlerFactory - must not be null.public Object onBeforeBind(Object entity)
BeforeBindCallbackentity to a Map, so the
outcome of this callback is used to create the record for the domain object.onBeforeBind in interface BeforeBindCallback<Object>entity - the domain object to save.Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.