Interface CosmosAsyncEntities


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.azure.cosmos.models.PartitionKey createPartitionKey​(java.lang.Object entity)
      Creates the PartitionKey for the entity.
      com.azure.cosmos.CosmosAsyncContainer getContainer​(java.lang.Class<?> entityType)
      Obtains the CosmosAsyncContainer for the entity type.
    • Method Detail

      • getContainer

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

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