Interface CosmosEntities


public interface CosmosEntities
Provides means to work with entities for Cosmos.
Author:
Daniel Sagenschneider
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.cosmos.models.PartitionKey
    Creates the PartitionKey for the entity.
    com.azure.cosmos.CosmosContainer
    getContainer(Class<?> entityType)
    Obtains the CosmosContainer for the entity type.
  • Method Details

    • getContainer

      com.azure.cosmos.CosmosContainer getContainer(Class<?> entityType)
      Obtains the CosmosContainer for the entity type.
      Parameters:
      entityType - Entity type.
      Returns:
      CosmosContainer for the entity type.
    • createPartitionKey

      com.azure.cosmos.models.PartitionKey createPartitionKey(Object entity)
      Creates the PartitionKey for the entity.
      Parameters:
      entity - Entity to generate PartitionKey.
      Returns:
      PartitionKey for the entity.