Class CosmosMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<BasicCosmosPersistentEntity<?>,CosmosPersistentProperty>
com.azure.spring.data.cosmos.core.mapping.CosmosMappingContext
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.data.mapping.context.MappingContext<BasicCosmosPersistentEntity<?>,
CosmosPersistentProperty>
public class CosmosMappingContext
extends org.springframework.data.mapping.context.AbstractMappingContext<BasicCosmosPersistentEntity<?>,CosmosPersistentProperty>
Class to build mapping metadata and thus create instances of
BasicCosmosPersistentEntity
and
CosmosPersistentProperty
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> BasicCosmosPersistentEntity<T>
createPersistentEntity
(org.springframework.data.util.TypeInformation<T> typeInformation) createPersistentProperty
(org.springframework.data.mapping.model.Property property, BasicCosmosPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityFor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
CosmosMappingContext
public CosmosMappingContext()
-
-
Method Details
-
createPersistentEntity
protected <T> BasicCosmosPersistentEntity<T> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) - Specified by:
createPersistentEntity
in classorg.springframework.data.mapping.context.AbstractMappingContext<BasicCosmosPersistentEntity<?>,
CosmosPersistentProperty>
-
createPersistentProperty
public CosmosPersistentProperty createPersistentProperty(org.springframework.data.mapping.model.Property property, BasicCosmosPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) - Specified by:
createPersistentProperty
in classorg.springframework.data.mapping.context.AbstractMappingContext<BasicCosmosPersistentEntity<?>,
CosmosPersistentProperty>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Overrides:
setApplicationContext
in classorg.springframework.data.mapping.context.AbstractMappingContext<BasicCosmosPersistentEntity<?>,
CosmosPersistentProperty>
-