public class ReactiveAuditingEntityCallback extends Object implements BeforeConvertCallback<Object>, Ordered
EntityCallback
to populate auditing related fields on an entity about to be saved.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ReactiveAuditingEntityCallback(ObjectFactory<ReactiveIsNewAwareAuditingHandler> auditingHandlerFactory)
Creates a new
BeforeConvertCallback using the given MappingContext and AuditingHandler
provided by the given ObjectFactory . |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
org.reactivestreams.Publisher<Object> |
onBeforeConvert(Object entity,
org.springframework.data.relational.core.sql.SqlIdentifier table)
Entity callback method invoked before a domain object is converted to be persisted.
|
public ReactiveAuditingEntityCallback(ObjectFactory<ReactiveIsNewAwareAuditingHandler> auditingHandlerFactory)
BeforeConvertCallback
using the given MappingContext
and AuditingHandler
provided by the given ObjectFactory
.auditingHandlerFactory
- must not be null.public org.reactivestreams.Publisher<Object> onBeforeConvert(Object entity, org.springframework.data.relational.core.sql.SqlIdentifier table)
BeforeConvertCallback
onBeforeConvert
in interface BeforeConvertCallback<Object>
entity
- the domain object to save.table
- name of the table.Copyright © 2018–2021 Pivotal Software, Inc.. All rights reserved.