org.springframework.data.mongodb.core.mapping.event

Class 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:
    Serialized Form
    • Constructor Detail

      • 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:
        dbo - must not be null.
        type - may be null.
        collectionName - must not be null.
        Since:
        1.8