Class BeforeDeleteEvent
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.BeforeDeleteEvent
- 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
ConstructorDescriptionBeforeDeleteEvent
(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
-
BeforeDeleteEvent
public BeforeDeleteEvent(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
-