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

public abstract class AbstractDeleteEvent<T> extends MongoMappingEvent<org.bson.Document>
Base class for delete events.
Author:
Martin Baumgartner, Christoph Strobl, Mark Paluch
See Also:
  • Constructor Details

    • AbstractDeleteEvent

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

    • getType

      @Nullable public Class<T> getType()
      Returns the type for which the AbstractDeleteEvent shall be invoked for.
      Returns:
      can be null.