CosmosMappingEvent<T> Class

  • java.lang.Object
    • java.util.EventObject
      • org.springframework.context.ApplicationEvent
        • com.azure.spring.data.cosmos.core.mapping.event.CosmosMappingEvent<T>

Type Parameters

T

the type of the event.

public class CosmosMappingEvent
extends org.springframework.context.ApplicationEvent

Constructor Summary

Constructor Description
CosmosMappingEvent(T source, JsonNode document, String containerName)

Creates new CosmosMappingEvent<T>.

Method Summary

Modifier and Type Method and Description
String getContainerName()

Get the container the event refers to.

com.fasterxml.jackson.databind.JsonNode getDocument()

Return null if not set.

T getSource()

Methods inherited from java.lang.Object

Methods inherited from java.util.EventObject

Methods inherited from org.springframework.context.ApplicationEvent

org.springframework.context.ApplicationEvent.getTimestamp

Constructor Details

CosmosMappingEvent

public CosmosMappingEvent(T source, JsonNode document, String containerName)

Creates new CosmosMappingEvent<T>.

Parameters:

source - must not be null.
document - can be null.
containerName - can be null.

Method Details

getContainerName

public String getContainerName()

Get the container the event refers to.

Returns:

null if not set.

getDocument

public JsonNode getDocument()

Return null if not set.

Returns:

null if not set.

getSource

public T getSource()

Overrides:

CosmosMappingEvent<T>.getSource()

Applies to