Class AbstractRelationalEventListener<E>
java.lang.Object
org.springframework.data.relational.core.mapping.event.AbstractRelationalEventListener<E>
- Type Parameters:
E
-
- All Implemented Interfaces:
EventListener
,ApplicationListener<AbstractRelationalEvent<?>>
public class AbstractRelationalEventListener<E>
extends Object
implements ApplicationListener<AbstractRelationalEvent<?>>
Base class to implement domain class specific
ApplicationListener
classes.- Since:
- 2.0
- Author:
- Jens Schauder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
onAfterConvert
(AfterConvertEvent<E> event) CapturesAfterConvertEvent
.protected void
onAfterDelete
(AfterDeleteEvent<E> event) CapturesAfterDeleteEvent
.protected void
onAfterLoad
(AfterLoadEvent<E> event) Deprecated.protected void
onAfterSave
(AfterSaveEvent<E> event) CapturesAfterSaveEvent
.void
onApplicationEvent
(AbstractRelationalEvent<?> event) protected void
onBeforeConvert
(BeforeConvertEvent<E> event) CapturesBeforeConvertEvent
.protected void
onBeforeDelete
(BeforeDeleteEvent<E> event) CaptureBeforeDeleteEvent
.protected void
onBeforeSave
(BeforeSaveEvent<E> event) CapturesBeforeSaveEvent
.
-
Constructor Details
-
AbstractRelationalEventListener
public AbstractRelationalEventListener()Creates a newAbstractRelationalEventListener
.
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceApplicationListener<E>
-
onBeforeConvert
CapturesBeforeConvertEvent
.- Parameters:
event
- never null.
-
onBeforeSave
CapturesBeforeSaveEvent
.- Parameters:
event
- will never be null.
-
onAfterSave
CapturesAfterSaveEvent
.- Parameters:
event
- will never be null.
-
onAfterLoad
Deprecated.useonAfterConvert(AfterConvertEvent)
instead.CapturesAfterLoadEvent
.- Parameters:
event
- will never be null.
-
onAfterConvert
CapturesAfterConvertEvent
.- Parameters:
event
- will never be null.- Since:
- 2.3
-
onAfterDelete
CapturesAfterDeleteEvent
.- Parameters:
event
- will never be null.
-
onBeforeDelete
CaptureBeforeDeleteEvent
.- Parameters:
event
- will never be null.
-
onAfterConvert(AfterConvertEvent)
instead.