Class LinkedEntityEvent

All Implemented Interfaces:
Direct Known Subclasses:
AfterLinkDeleteEvent, AfterLinkSaveEvent, BeforeLinkDeleteEvent, BeforeLinkSaveEvent

public abstract class LinkedEntityEvent extends RepositoryEvent
Base class for RepositoryEvents that deal with saving/updating or deleting a linked object.
Jon Brisbin, Oliver Gierke
See Also:
  • Constructor Details

    • LinkedEntityEvent

      public LinkedEntityEvent(Object source, Object linked)
      Creates a new LinkedEntityEvent for th given source and linked instance.
      source - must not be null.
      linked - can be null.
  • Method Details

    • getLinked

      public Object getLinked()
      Get the linked object.
      The entity representing the right-hand side of this relationship.