org.springframework.data.mongodb.core.mapping.event

Class MongoMappingEvent<T>

    • Constructor Detail

      • MongoMappingEvent

        public MongoMappingEvent(T source,
                                 @Nullable
                                 org.bson.Document document,
                                 @Nullable
                                 String collectionName)
        Creates new MongoMappingEvent.
        Parameters:
        source - must not be null.
        document - can be null.
        collectionName - can be null.
    • Method Detail

      • getDocument

        @Nullable
        public org.bson.Document getDocument()
        Returns:
        null if not set.
      • getCollectionName

        @Nullable
        public String getCollectionName()
        Get the collection the event refers to.
        Returns:
        null if not set.
        Since:
        1.8