Class BasicCosmosPersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,CosmosPersistentProperty>
com.azure.spring.data.cosmos.core.mapping.BasicCosmosPersistentEntity<T>
- Type Parameters:
T- the type that is persisted.
- All Implemented Interfaces:
CosmosPersistentEntity<T>,Iterable<CosmosPersistentProperty>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.EnvironmentAware,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 of
CosmosPersistentPropertys.-
Constructor Summary
ConstructorsConstructorDescriptionBasicCosmosPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) Creates a newBasicCosmosPersistentEntityfrom the givenTypeInformation. -
Method Summary
Modifier and TypeMethodDescriptionTo get collection of entityTo get container of entityTo get languagevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) To set application contextMethods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getValueEvaluationContext, getValueEvaluationContext, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Constructor Details
-
BasicCosmosPersistentEntity
public BasicCosmosPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) Creates a newBasicCosmosPersistentEntityfrom the givenTypeInformation.- Parameters:
typeInformation- must not be null.
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException To 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
To get collection of entity- Returns:
- String
-
getContainer
Description copied from interface:CosmosPersistentEntityTo get container of entity- Specified by:
getContainerin interfaceCosmosPersistentEntity<T>- Returns:
- String
-
getLanguage
Description copied from interface:CosmosPersistentEntityTo get language- Specified by:
getLanguagein interfaceCosmosPersistentEntity<T>- Returns:
- String
-