Module spring.data.relational
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 java.util.EventObject
source -
Method Summary
Modifier and TypeMethodDescriptiongetId()Events with an identifier will always return aIdentifierone.getType()Methods 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
-
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.
-