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 of
CosmosPersistentProperty
s.-
Constructor Summary
ConstructorDescriptionBasicCosmosPersistentEntity
(org.springframework.data.util.TypeInformation<T> typeInformation) Creates a newBasicCosmosPersistentEntity
from the givenTypeInformation
. -
Method Summary
Modifier and TypeMethodDescriptionTo get collection of entityTo get container of entityTo get languagevoid
setApplicationContext
(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, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, 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, 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 newBasicCosmosPersistentEntity
from 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:
setApplicationContext
in 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:CosmosPersistentEntity
To get container of entity- Specified by:
getContainer
in interfaceCosmosPersistentEntity<T>
- Returns:
- String
-
getLanguage
Description copied from interface:CosmosPersistentEntity
To get language- Specified by:
getLanguage
in interfaceCosmosPersistentEntity<T>
- Returns:
- String
-