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
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Method Details
-
getEntity
Description copied from interface:WithEntityOverridden in order to change nullability.- Specified by:
getEntityin interfaceRelationalEvent<E>- Specified by:
getEntityin interfaceWithEntity<E>- Returns:
- the entity to which this event refers. Guaranteed to be not null.
-
getType
- Specified by:
getTypein interfaceRelationalEvent<E>- Returns:
- the type of the entity to which the event relates.
-