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 CosmosPersistentPropertys.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicCosmosPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
    Creates a new BasicCosmosPersistentEntity from the given TypeInformation.
  • Method Summary

    Modifier and Type
    Method
    Description
    To get collection of entity
    To get container of entity
    To get language
    void
    setApplicationContext(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, 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 new BasicCosmosPersistentEntity from the given TypeInformation.
      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 interface org.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: CosmosPersistentEntity
      To get container of entity
      Specified by:
      getContainer in interface CosmosPersistentEntity<T>
      Returns:
      String
    • getLanguage

      public String getLanguage()
      Description copied from interface: CosmosPersistentEntity
      To get language
      Specified by:
      getLanguage in interface CosmosPersistentEntity<T>
      Returns:
      String