Module spring.data.relational
Class AfterDeleteEvent<E>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.relational.core.mapping.event.AbstractRelationalEvent<E>
org.springframework.data.relational.core.mapping.event.RelationalDeleteEvent<E>
org.springframework.data.relational.core.mapping.event.AfterDeleteEvent<E>
- All Implemented Interfaces:
Serializable,ResolvableTypeProvider,RelationalEvent<E>,WithAggregateChange<E>,WithId<E>
Gets published after deletion of an entity. It will have a
Identifier identifier. If the entity is
null or not depends on the delete method used.- Since:
- 2.0
- Author:
- Jens Schauder
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.data.relational.core.mapping.event.RelationalDeleteEvent
getAggregateChange, getEntity, getId, getTypeMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.relational.core.mapping.event.RelationalEvent
getResolvableType
-
Constructor Details
-
AfterDeleteEvent
- Parameters:
id- of the entity. Must not be null.instance- the deleted entity if it is available. May be null.change- theAggregateChangeencoding the actions that were performed on the database as part of the delete operation. Must not be null.
-