Class BasicCosmosPersistentEntity<T>
- java.lang.Object
-
- org.springframework.data.mapping.model.BasicPersistentEntity<T,CosmosPersistentProperty>
-
- com.azure.spring.data.cosmos.core.mapping.BasicCosmosPersistentEntity<T>
-
- All Implemented Interfaces:
CosmosPersistentEntity<T>,Iterable<CosmosPersistentProperty>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.data.mapping.model.MutablePersistentEntity<T,CosmosPersistentProperty>,org.springframework.data.mapping.PersistentEntity<T,CosmosPersistentProperty>
public class BasicCosmosPersistentEntity<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,CosmosPersistentProperty> implements CosmosPersistentEntity<T>, org.springframework.context.ApplicationContextAware
Simple value object to capture information ofCosmosPersistentPropertys.
-
-
Constructor Summary
Constructors Constructor Description BasicCosmosPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)Creates a newBasicCosmosPersistentEntityfrom the givenTypeInformation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCollection()To get collection of entityStringgetContainer()To get container of entityStringgetLanguage()To get languagevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)To set application context-
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
-
-
-
Constructor Detail
-
BasicCosmosPersistentEntity
public BasicCosmosPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
Creates a newBasicCosmosPersistentEntityfrom the givenTypeInformation.- Parameters:
typeInformation- must not be null.
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansExceptionTo set application context- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Parameters:
applicationContext- must not be null.- Throws:
org.springframework.beans.BeansException- the bean exception
-
getCollection
public String getCollection()
To get collection of entity- Returns:
- String
-
getContainer
public String getContainer()
Description copied from interface:CosmosPersistentEntityTo get container of entity- Specified by:
getContainerin interfaceCosmosPersistentEntity<T>- Returns:
- String
-
getLanguage
public String getLanguage()
Description copied from interface:CosmosPersistentEntityTo get language- Specified by:
getLanguagein interfaceCosmosPersistentEntity<T>- Returns:
- String
-
-