Class CosmosQueryExecution.SingleEntityExecution

java.lang.Object
com.azure.spring.data.cosmos.repository.query.CosmosQueryExecution.SingleEntityExecution
All Implemented Interfaces:
CosmosQueryExecution
Enclosing interface:
CosmosQueryExecution

public static final class CosmosQueryExecution.SingleEntityExecution extends Object implements CosmosQueryExecution
Find operation implementation to execute a find query for a single item
  • Constructor Details

    • SingleEntityExecution

      public SingleEntityExecution(CosmosOperations operations, org.springframework.data.repository.query.ReturnedType returnedType)
      Creates a new instance of single-entity execution.
      Parameters:
      operations - the Cosmos operations
      returnedType - the returned type
  • Method Details

    • execute

      public Object execute(CosmosQuery query, Class<?> type, String collection)
      Description copied from interface: CosmosQueryExecution
      Declare an execute function for different operations to call
      Specified by:
      execute in interface CosmosQueryExecution
      Parameters:
      query - document query operation
      type - domain type
      collection - container to conduct query
      Returns:
      Object according to execution result