Class AfterDeleteEvent
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.DeleteEvent
com.google.cloud.spring.data.spanner.core.mapping.event.AfterDeleteEvent
- All Implemented Interfaces:
Serializable
An event that is published after a delete operation.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAfterDeleteEvent
(List<com.google.cloud.spanner.Mutation> source, Iterable targetEntities, com.google.cloud.spanner.KeySet targetKeys, Class targetType) Constructor. -
Method Summary
Methods inherited from class com.google.cloud.spring.data.spanner.core.mapping.event.DeleteEvent
getTargetKeys, getTargetType
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
-
AfterDeleteEvent
public AfterDeleteEvent(List<com.google.cloud.spanner.Mutation> source, Iterable targetEntities, com.google.cloud.spanner.KeySet targetKeys, Class targetType) Constructor.- Parameters:
source
- the mutations for the event initially occurred. (nevernull
)targetEntities
- the target entities that need to be deleted. This may benull
depending on the type of delete request.targetKeys
- the target keys that need to be deleted. This may benull
depending on the type of delete request.targetType
- the target entity type that needs to be deleted. This may benull
depending on the
-