CosmosMappingContext Class
- java.
lang. Object - org.
springframework. data. mapping. context. AbstractMappingContext - com.
azure. spring. data. cosmos. core. mapping. CosmosMappingContext
- com.
- org.
public class CosmosMappingContext
extends org.springframework.data.mapping.context.AbstractMappingContext<BasicCosmosPersistentEntity<?>,CosmosPersistentProperty>
Class to build mapping metadata and thus create instances of BasicCosmosPersistentEntity<T> and CosmosPersistentProperty.
Constructor Summary
| Constructor | Description |
|---|---|
| CosmosMappingContext() |
Construct a CosmosMappingContext instance, with the CosmosSimpleTypes as simple type holder. |
Method Summary
Methods inherited from java.lang.Object
Methods inherited from org.springframework.data.mapping.context.AbstractMappingContext
Constructor Details
CosmosMappingContext
public CosmosMappingContext()
Construct a CosmosMappingContext instance, with the CosmosSimpleTypes as simple type holder.
Method Details
createPersistentEntity
protected BasicCosmosPersistentEntity<T> <T>createPersistentEntity(TypeInformation<T> typeInformation)
Overrides:
CosmosMappingContext.createPersistentEntity(TypeInformation<T> typeInformation)Parameters:
createPersistentProperty
public CosmosPersistentProperty createPersistentProperty(Property property, BasicCosmosPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder)
Overrides:
CosmosMappingContext.createPersistentProperty(Property property, BasicCosmosPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder)Parameters:
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
Overrides:
CosmosMappingContext.setApplicationContext(ApplicationContext applicationContext)Parameters: