Class LinkedEntityEvent

All Implemented Interfaces:
Serializable
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.
Author:
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.
      Parameters:
      source - must not be null.
      linked - can be null.
  • Method Details

    • getLinked

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