public class RelationalAuditingCallback extends Object implements BeforeConvertCallback<Object>, Ordered
BeforeConvertCallback to capture auditing information on persisting and updating entities.
An instance of this class gets registered when you enable auditing for Spring Data JDBC.
| Modifier and Type | Field and Description |
|---|---|
static int |
AUDITING_ORDER
The order used for this
EventListener. |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
RelationalAuditingCallback(IsNewAwareAuditingHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
Object |
onBeforeConvert(Object entity)
Entity callback method invoked before an aggregate root is converted to be persisted.
|
public static final int AUDITING_ORDER
EventListener. Ordering ensures that this
ApplicationListener will run before other listeners without a specified priority.Order,
Ordered,
Constant Field Valuespublic RelationalAuditingCallback(IsNewAwareAuditingHandler handler)
public Object onBeforeConvert(Object entity)
BeforeConvertCallbackonBeforeConvert in interface BeforeConvertCallback<Object>entity - the saved aggregate.Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.