Class RelationalEventWithEntity<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>
- All Implemented Interfaces:
Serializable
,RelationalEvent<E>
,WithEntity<E>
- Direct Known Subclasses:
AfterConvertEvent
,BeforeConvertEvent
,RelationalSaveEvent
public class RelationalEventWithEntity<E>
extends AbstractRelationalEvent<E>
implements WithEntity<E>
An event that is guaranteed to have an entity.
- Author:
- Jens Schauder
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Method Details
-
getEntity
Description copied from interface:WithEntity
Overridden in order to change nullability.- Specified by:
getEntity
in interfaceRelationalEvent<E>
- Specified by:
getEntity
in interfaceWithEntity<E>
- Returns:
- the entity to which this event refers. Guaranteed to be not null.
-
getType
- Specified by:
getType
in interfaceRelationalEvent<E>
- Returns:
- the type of the entity to which the event relates.
-