Module spring.data.mongodb
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 newAbstractDeleteEventfor the givenDocumentand type. -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the type for which theAbstractDeleteEventshall be invoked for.Methods inherited from class org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent
getCollectionName, getDocument, getSourceMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AbstractDeleteEvent
public AbstractDeleteEvent(org.bson.Document document, @Nullable Class<T> type, String collectionName) Creates a newAbstractDeleteEventfor the givenDocumentand 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 theAbstractDeleteEventshall be invoked for.- Returns:
- can be null.
-