public class RelationalAuditingEventListener extends Object implements ApplicationListener<BeforeSaveEvent>, Ordered
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 |
|---|
RelationalAuditingEventListener(IsNewAwareAuditingHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
onApplicationEvent(BeforeSaveEvent event) |
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 RelationalAuditingEventListener(IsNewAwareAuditingHandler handler)
public void onApplicationEvent(BeforeSaveEvent event)
onApplicationEvent in interface ApplicationListener<BeforeSaveEvent>event - a notification event for indicating before saveCopyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.