public class MongoMappingEvent<T> extends ApplicationEvent
ApplicationEvent triggered by Spring Data MongoDB.source| Constructor and Description |
|---|
MongoMappingEvent(T source,
org.bson.Document document,
String collectionName)
Creates new
MongoMappingEvent. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionName()
Get the collection the event refers to.
|
org.bson.Document |
getDocument() |
T |
getSource() |
getTimestamptoStringpublic MongoMappingEvent(T source, org.bson.Document document, String collectionName)
MongoMappingEvent.source - must not be null.document - can be null.collectionName - can be null.public org.bson.Document getDocument()
public String getCollectionName()
public T getSource()
getSource in class EventObjectCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.