Class 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:
  • Method Details

    • getEntity

      public E getEntity()
      Description copied from interface: WithEntity
      Overridden in order to change nullability.
      Specified by:
      getEntity in interface RelationalEvent<E>
      Specified by:
      getEntity in interface WithEntity<E>
      Returns:
      the entity to which this event refers. Guaranteed to be not null.
    • getType

      public Class<E> getType()
      Specified by:
      getType in interface RelationalEvent<E>
      Returns:
      the type of the entity to which the event relates.