CosmosQueryExecution.SingleEntityExecution Class

  • java.lang.Object
    • com.azure.spring.data.cosmos.repository.query.CosmosQueryExecution.SingleEntityExecution

Implements

public static final class CosmosQueryExecution.SingleEntityExecution
implements CosmosQueryExecution

Find operation implementation to execute a find query for a single item

Constructor Summary

Constructor Description
SingleEntityExecution(CosmosOperations operations, ReturnedType returnedType)

Creates a new instance of single-entity execution.

Method Summary

Modifier and Type Method and Description
Object execute(CosmosQuery query, Class<?> type, String collection)

Declare an execute function for different operations to call

Methods inherited from java.lang.Object

Constructor Details

SingleEntityExecution

public SingleEntityExecution(CosmosOperations operations, 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)

Declare an execute function for different operations to call

Parameters:

query
type
collection

Applies to