java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
All Implemented Interfaces:
Serializable

public class BeforeSaveEvent extends SaveEvent
An event that is published just before a save operation is sent to Cloud Spanner.
See Also:
  • Constructor Details

    • BeforeSaveEvent

      public BeforeSaveEvent(Iterable targetEntities, Set<String> includeProperties)
      Constructor. BeforeSaveEvent does not hold mutations because this event gives the opportunity to modify the entities from which mutations are ultimately generated.
      Parameters:
      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.