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

public class SaveEvent extends MutationEvent
An event that signals a save operation to Cloud Spanner.
See Also:
  • Constructor Details

    • SaveEvent

      public SaveEvent(List<com.google.cloud.spanner.Mutation> source, Iterable targetEntities, Set<String> includeProperties)
      Constructor.
      Parameters:
      source - the mutations for the event initially occurred. (never null)
      targetEntities - the target entities that need to be mutated. This may be null depending on the original request.
      includeProperties - the set of properties to include in the save operation.
  • Method Details

    • getIncludeProperties

      public Set<String> getIncludeProperties()
      Get the optional set of properties to include in this save operation.
      Returns:
      the set of properties.