Class RelationalDeleteEvent<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>
- All Implemented Interfaces:
Serializable
,RelationalEvent<E>
,WithAggregateChange<E>
,WithId<E>
- Direct Known Subclasses:
AfterDeleteEvent
,BeforeDeleteEvent
public abstract class RelationalDeleteEvent<E>
extends AbstractRelationalEvent<E>
implements WithId<E>, WithAggregateChange<E>
Super class for events produced during deleting an aggregate. Such events have an
Identifier
and an
AggregateChange
and may also have an entity if the entity was provided to the method performing the delete.- Since:
- 2.0
- Author:
- Jens Schauder
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Events with an identifier will always return aIdentifier
one.getType()
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Method Details
-
getId
Description copied from interface:WithId
Events with an identifier will always return aIdentifier
one. -
getEntity
- Specified by:
getEntity
in interfaceRelationalEvent<E>
- Returns:
- the entity to which this event refers. Might be null.
-
getAggregateChange
- Specified by:
getAggregateChange
in interfaceWithAggregateChange<E>
- Returns:
- Guaranteed to be not null.
-
getType
- Specified by:
getType
in interfaceRelationalEvent<E>
- Returns:
- the type of the entity to which the event relates.
-