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, ResolvableTypeProvider, 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 EventObject
source -
Method Summary
Modifier and TypeMethodDescription@Nullable EgetId()Events with an identifier will always return aIdentifierone.getType()Methods inherited from class ApplicationEvent
getTimestampMethods inherited from class EventObject
getSource, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface RelationalEvent
getResolvableType
-
Method Details
-
getId
Description copied from interface:WithIdEvents with an identifier will always return aIdentifierone. -
getEntity
- Specified by:
getEntityin interfaceRelationalEvent<E>- Returns:
- the entity to which this event refers. Might be null.
-
getAggregateChange
- Specified by:
getAggregateChangein interfaceWithAggregateChange<E>- Returns:
- Guaranteed to be not null.
-
getType
- Specified by:
getTypein interfaceRelationalEvent<E>- Returns:
- the type of the entity to which the event relates.
-