Class DeleteEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.google.cloud.spring.data.datastore.core.mapping.event.DeleteEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AfterDeleteEvent
,BeforeDeleteEvent
public class DeleteEvent
extends org.springframework.context.ApplicationEvent
An event published when Spring Data Cloud Datastore performs a delete operation.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionDeleteEvent
(com.google.cloud.datastore.Key[] keysToDelete, Class targetEntityClass, Iterable targetIds, Iterable targetEntities) Constructor. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
DeleteEvent
public DeleteEvent(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 delete operation.
-
-
Method Details
-
getKeys
public com.google.cloud.datastore.Key[] getKeys()Get the keys that were deleted in this operation.- Returns:
- the array of keys.
-
getOptionalTargetEntityClass
Get the target entity type deleted.- Returns:
- This may be empty depending on the specific delete operation.
-
getOptionalTargetIds
Get the target entity ID values deleted.- Returns:
- This may be empty depending on the specific delete operation.
-
getOptionalTargetEntities
Get thetarget entity objects deleted.- Returns:
- This may be empty depending on the specific delete operation.
-
equals
-
hashCode
public int hashCode()
-