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

Class BeforeDeleteEvent<T>

  • All Implemented Interfaces:
    Serializable


    public class BeforeDeleteEvent<T>
    extends AbstractDeleteEvent<T>
    Event being thrown before a document is deleted. The Document held in the event will represent the query document before being mapped based on the domain class handled.
    Author:
    Martin Baumgartner, Christoph Strobl, Mark Paluch
    See Also:
    Serialized Form
    • Constructor Detail

      • BeforeDeleteEvent

        public BeforeDeleteEvent(org.bson.Document document,
                                 @Nullable
                                 Class<T> type,
                                 String collectionName)
        Creates a new BeforeDeleteEvent 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