Spring Data MongoDB - Core

org.springframework.data.mongodb.core.mapping.event
Class AfterDeleteEvent<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.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 DBObject held in the event will be the query document after it has been mapped onto the domain type handled.

Author:
Martin Baumgartner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AfterDeleteEvent(com.mongodb.DBObject dbo, Class<T> type)
          Creates a new AfterDeleteEvent 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

AfterDeleteEvent

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

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

Spring Data MongoDB - Core

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.