Class AfterDeleteEvent<T>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent<org.bson.Document>
org.springframework.data.mongodb.core.mapping.event.AbstractDeleteEvent<T>
org.springframework.data.mongodb.core.mapping.event.AfterDeleteEvent<T>
- All Implemented Interfaces:
Serializable
Event being thrown after a single or a set of documents has/have been deleted. The
Document
held in the event
will be the query document after it has been mapped onto the domain type handled.- Author:
- Martin Baumgartner, Christoph Strobl, Mark Paluch
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAfterDeleteEvent
(org.bson.Document document, Class<T> type, String collectionName) Creates a newAfterDeleteEvent
for the givenDocument
, type and collectionName. -
Method Summary
Methods inherited from class org.springframework.data.mongodb.core.mapping.event.AbstractDeleteEvent
getType
Methods inherited from class org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent
getCollectionName, getDocument, getSource
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AfterDeleteEvent
Creates a newAfterDeleteEvent
for the givenDocument
, type and collectionName.- Parameters:
document
- must not be null.type
- may be null.collectionName
- must not be null.- Since:
- 1.8
-