Spring Data MongoDB - Core

org.springframework.data.mongodb.core.mapping.event
Class BeforeDeleteEvent<T>

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent<com.mongodb.DBObject>
              extended by org.springframework.data.mongodb.core.mapping.event.AbstractDeleteEvent<T>
                  extended by org.springframework.data.mongodb.core.mapping.event.BeforeDeleteEvent<T>
All Implemented Interfaces:
Serializable

public class BeforeDeleteEvent<T>
extends AbstractDeleteEvent<T>

Event being thrown before a document is deleted. The DBObject held in the event will represent the query document before being mapped based on the domain class handled.

Author:
Martin Baumgartner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BeforeDeleteEvent(com.mongodb.DBObject dbo, Class<T> type)
          Creates a new BeforeDeleteEvent for the given DBObject and type.
 
Method Summary
 
Methods inherited from class org.springframework.data.mongodb.core.mapping.event.AbstractDeleteEvent
getType
 
Methods inherited from class org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent
getDBObject, getSource
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeforeDeleteEvent

public BeforeDeleteEvent(com.mongodb.DBObject dbo,
                         Class<T> type)
Creates a new BeforeDeleteEvent for the given DBObject and type.

Parameters:
dbo - must not be null.
type - can be null.

Spring Data MongoDB - Core

Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.