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 ofBasicCosmosPersistentEntityandCosmosPersistentProperty.
-
-
Constructor Summary
Constructors Constructor Description CosmosMappingContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> BasicCosmosPersistentEntity<T>createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)CosmosPersistentPropertycreatePersistentProperty(org.springframework.data.mapping.model.Property property, BasicCosmosPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)voidsetApplicationContext(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
-
-
-
-
Method Detail
-
createPersistentEntity
protected <T> BasicCosmosPersistentEntity<T> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
- Specified by:
createPersistentEntityin 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:
createPersistentPropertyin classorg.springframework.data.mapping.context.AbstractMappingContext<BasicCosmosPersistentEntity<?>,CosmosPersistentProperty>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Overrides:
setApplicationContextin classorg.springframework.data.mapping.context.AbstractMappingContext<BasicCosmosPersistentEntity<?>,CosmosPersistentProperty>
-
-