Class SaveEvent
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
An event that signals a save operation to Cloud Spanner.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the optional set of properties to include in this save operation.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
-
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. (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.
-
-
Method Details
-
getIncludeProperties
Get the optional set of properties to include in this save operation.- Returns:
- the set of properties.
-