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.BeanFactoryAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware,org.springframework.context.EnvironmentAware,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
ConstructorsConstructorDescriptionConstruct aCosmosMappingContextinstance, with theCosmosSimpleTypesas simple type holder. -
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) 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, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setBeanFactory, setEnvironment, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityFor, shouldCreatePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
CosmosMappingContext
public CosmosMappingContext()Construct aCosmosMappingContextinstance, with theCosmosSimpleTypesas simple type holder.
-
-
Method Details
-
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>
-