Class BeforeSaveEvent<E>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent<E>
org.springframework.data.mongodb.core.mapping.event.BeforeSaveEvent<E>
- All Implemented Interfaces:
Serializable
MongoMappingEvent
triggered before save of a document.- Author:
- Jon Brisbin, Christoph Strobl, Mark Paluch
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionBeforeSaveEvent
(E source, org.bson.Document document, String collectionName) Creates newBeforeSaveEvent
. -
Method Summary
Methods inherited from class org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent
getCollectionName, getDocument, getSource
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
BeforeSaveEvent
Creates newBeforeSaveEvent
.- Parameters:
source
- must not be null.document
- must not be null.collectionName
- must not be null.- Since:
- 1.8
-