Class SimpleCosmosEntityMetadata<T>

java.lang.Object
com.azure.spring.data.cosmos.repository.query.SimpleCosmosEntityMetadata<T>
All Implemented Interfaces:
CosmosEntityMetadata<T>, org.springframework.data.repository.core.EntityMetadata<T>

public class SimpleCosmosEntityMetadata<T> extends Object implements CosmosEntityMetadata<T>
Metadata class to describe simple cosmos entity includes domain type and cosmos entity information
  • Constructor Details

    • SimpleCosmosEntityMetadata

      public SimpleCosmosEntityMetadata(Class<T> type, CosmosEntityInformation<T,String> entityInformation)
      Initialization
      Parameters:
      type - the actual domain class type
      entityInformation - cosmos entity
  • Method Details

    • getJavaType

      public Class<T> getJavaType()
      Return the actual domain class type
      Specified by:
      getJavaType in interface org.springframework.data.repository.core.EntityMetadata<T>
      Returns:
      type
    • getCollectionName

      public String getCollectionName()
      Get collection name of cosmos
      Returns:
      container name
    • getContainerName

      public String getContainerName()
      Get container name of cosmos
      Specified by:
      getContainerName in interface CosmosEntityMetadata<T>
      Returns:
      container name