Class AfterSaveEvent
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
com.google.cloud.spring.data.spanner.core.mapping.event.AfterSaveEvent
- All Implemented Interfaces:
Serializable
An event that is published after a save operation to Cloud Spanner.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAfterSaveEvent
(List<com.google.cloud.spanner.Mutation> source, Iterable targetEntities, Set<String> includeProperties) Constructor. -
Method Summary
Methods inherited from class com.google.cloud.spring.data.spanner.core.mapping.event.SaveEvent
getIncludeProperties
Methods inherited from class com.google.cloud.spring.data.spanner.core.mapping.event.MutationEvent
equals, getMutations, getTargetEntities, hashCode
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AfterSaveEvent
public AfterSaveEvent(List<com.google.cloud.spanner.Mutation> source, Iterable targetEntities, Set<String> includeProperties) Constructor.- Parameters:
source
- the mutations for the event initially occurred. (nevernull
)targetEntities
- the target entities that need to be mutated. This may benull
depending on the original request.includeProperties
- the set of properties to include in the save operation.
-