Module spring.data.relational
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,ResolvableTypeProvider,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, 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
-
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.
-