public class ReactiveAuditingEntityCallback extends Object implements ReactiveBeforeConvertCallback<Object>, Ordered
EntityCallback
to populate auditing related fields on an entity about to be saved.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ReactiveAuditingEntityCallback(ObjectFactory<IsNewAwareAuditingHandler> auditingHandlerFactory)
Creates a new
ReactiveAuditingEntityCallback using the given MappingContext and
AuditingHandler provided by the given ObjectFactory . |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
reactor.core.publisher.Mono<Object> |
onBeforeConvert(Object entity,
CqlIdentifier tableName)
Entity callback method invoked before a domain object is converted to be persisted.
|
public ReactiveAuditingEntityCallback(ObjectFactory<IsNewAwareAuditingHandler> auditingHandlerFactory)
ReactiveAuditingEntityCallback
using the given MappingContext
and
AuditingHandler
provided by the given ObjectFactory
.auditingHandlerFactory
- must not be null.public reactor.core.publisher.Mono<Object> onBeforeConvert(Object entity, CqlIdentifier tableName)
ReactiveBeforeConvertCallback
onBeforeConvert
in interface ReactiveBeforeConvertCallback<Object>
entity
- the domain object to save.tableName
- name of the table.Publisher
emitting the domain object to be persisted.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.