Class BeforeDeleteEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.google.cloud.spring.data.datastore.core.mapping.event.DeleteEvent
com.google.cloud.spring.data.datastore.core.mapping.event.BeforeDeleteEvent
- All Implemented Interfaces:
Serializable
An event published just before Spring Data Cloud Datastore performs a delete operation.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionBeforeDeleteEvent
(com.google.cloud.datastore.Key[] keysToDelete, Class targetEntityClass, Iterable targetIds, Iterable targetEntities) Constructor. -
Method Summary
Methods inherited from class com.google.cloud.spring.data.datastore.core.mapping.event.DeleteEvent
equals, getKeys, getOptionalTargetEntities, getOptionalTargetEntityClass, getOptionalTargetIds, hashCode
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
BeforeDeleteEvent
public BeforeDeleteEvent(com.google.cloud.datastore.Key[] keysToDelete, Class targetEntityClass, Iterable targetIds, Iterable targetEntities) Constructor.- Parameters:
keysToDelete
- The keys that are deleted in this operation (nevernull
).targetEntityClass
- The target entity type deleted. This may benull
depending on the specific delete operation.targetIds
- The target entity ID values deleted. This may benull
depending on the specific delete operation.targetEntities
- The target entity objects deleted. This may benull
depending on the specific
-