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

public class AfterDeleteEvent<T> extends AbstractDeleteEvent<T>
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:
  • Constructor Details

    • AfterDeleteEvent

      public AfterDeleteEvent(org.bson.Document document, @Nullable Class<T> type, String collectionName)
      Creates a new AfterDeleteEvent for the given Document, type and collectionName.
      Parameters:
      document - must not be null.
      type - may be null.
      collectionName - must not be null.
      Since:
      1.8