java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.google.cloud.spring.data.datastore.core.mapping.event.SaveEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AfterSaveEvent, BeforeSaveEvent

public class SaveEvent extends org.springframework.context.ApplicationEvent
An event published when entities are saved to Cloud Datastore.
See Also:
  • Constructor Details

    • SaveEvent

      public SaveEvent(List entities)
      Constructor.
      Parameters:
      entities - The original Java entities being saved. Each entity may result in multiple Datastore entities being saved due to relationships.
  • Method Details

    • getTargetEntities

      public List getTargetEntities()
      Get the original Java objects that were saved.
      Returns:
      The original Java objects that were saved to Cloud Datastore.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object