Spring Data MongoDB - Core

org.springframework.data.mongodb.core.mapping.event
Class AbstractDeleteEvent<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>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AfterDeleteEvent, BeforeDeleteEvent

public abstract class AbstractDeleteEvent<T>
extends MongoMappingEvent<com.mongodb.DBObject>

Base class for delete events.

Author:
Martin Baumgartner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AbstractDeleteEvent(com.mongodb.DBObject dbo, Class<T> type)
          Creates a new AbstractDeleteEvent for the given DBObject and type.
 
Method Summary
 Class<T> getType()
          Returns the type for which the AbstractDeleteEvent shall be invoked for.
 
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

AbstractDeleteEvent

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

Parameters:
dbo - must not be null.
type - , possibly be null.
Method Detail

getType

public Class<T> getType()
Returns the type for which the AbstractDeleteEvent shall be invoked for.

Returns:

Spring Data MongoDB - Core

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