public class MongoMappingEvent<T> extends ApplicationEvent
ApplicationEvent
triggered by Spring Data MongoDB.source
Constructor and Description |
---|
MongoMappingEvent(T source,
com.mongodb.DBObject dbo)
Deprecated.
since 1.8. Please use
MongoMappingEvent(Object, DBObject, String) . |
MongoMappingEvent(T source,
com.mongodb.DBObject dbo,
String collectionName)
Creates new
MongoMappingEvent . |
Modifier and Type | Method and Description |
---|---|
String |
getCollectionName()
Get the collection the event refers to.
|
com.mongodb.DBObject |
getDBObject() |
T |
getSource() |
getTimestamp
toString
@Deprecated public MongoMappingEvent(T source, com.mongodb.DBObject dbo)
MongoMappingEvent(Object, DBObject, String)
.MongoMappingEvent
.source
- must not be null.dbo
- can be null.public MongoMappingEvent(T source, com.mongodb.DBObject dbo, String collectionName)
MongoMappingEvent
.source
- must not be null.dbo
- can be null.collectionName
- can be null.public com.mongodb.DBObject getDBObject()
public String getCollectionName()
public T getSource()
getSource
in class EventObject
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.