Class AbstractDeleteEvent<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>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AfterDeleteEvent
,BeforeDeleteEvent
Base class for delete events.
- Author:
- Martin Baumgartner, Christoph Strobl, Mark Paluch
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDeleteEvent
(org.bson.Document document, Class<T> type, String collectionName) Creates a newAbstractDeleteEvent
for the givenDocument
and type. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
Returns the type for which theAbstractDeleteEvent
shall be invoked for.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
-
AbstractDeleteEvent
public AbstractDeleteEvent(org.bson.Document document, @Nullable Class<T> type, String collectionName) Creates a newAbstractDeleteEvent
for the givenDocument
and type.- Parameters:
document
- must not be null.type
- may be null.collectionName
- must not be null.- Since:
- 1.8
-
-
Method Details
-
getType
Returns the type for which theAbstractDeleteEvent
shall be invoked for.- Returns:
- can be null.
-