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, @Nullable org.bson.Document document, @Nullable String collectionName)
MongoMappingEvent.source - must not be null.document - can be null.collectionName - can be null.@Nullable public org.bson.Document getDocument()
@Nullable public String getCollectionName()
public T getSource()
getSource in class EventObjectCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.