Module spring.data.relational
Class RelationalSaveEvent<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.RelationalEventWithEntity<E>
org.springframework.data.relational.core.mapping.event.RelationalSaveEvent<E>
- All Implemented Interfaces:
Serializable,ResolvableTypeProvider,RelationalEvent<E>,WithAggregateChange<E>,WithEntity<E>
- Direct Known Subclasses:
AfterSaveEvent,BeforeSaveEvent
public abstract class RelationalSaveEvent<E>
extends RelationalEventWithEntity<E>
implements WithAggregateChange<E>
Events triggered during saving of an aggregate. Events of this type always have an
AggregateChange and an
entity.- Since:
- 2.0
- Author:
- Jens Schauder
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Method Summary
Methods inherited from class org.springframework.data.relational.core.mapping.event.RelationalEventWithEntity
getEntity, 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, getType
-
Method Details
-
getAggregateChange
- Specified by:
getAggregateChangein interfaceWithAggregateChange<E>- Returns:
- Guaranteed to be not null.
-