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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.azure.spring.data.cosmos.repository.query.CosmosQueryExecution
CosmosQueryExecution.ContainerExecution, CosmosQueryExecution.CountExecution, CosmosQueryExecution.DeleteExecution, CosmosQueryExecution.ExistsExecution, CosmosQueryExecution.MultiEntityExecution, CosmosQueryExecution.PagedExecution, CosmosQueryExecution.SingleEntityExecution, CosmosQueryExecution.SliceExecution
-
-
Constructor Summary
Constructors Constructor Description SingleEntityExecution(CosmosOperations operations, org.springframework.data.repository.query.ReturnedType returnedType)Creates a new instance of single-entity execution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(CosmosQuery query, Class<?> type, String collection)Declare an execute function for different operations to call
-
-
-
Constructor Detail
-
SingleEntityExecution
public SingleEntityExecution(CosmosOperations operations, org.springframework.data.repository.query.ReturnedType returnedType)
Creates a new instance of single-entity execution.- Parameters:
operations- the Cosmos operationsreturnedType- the returned type
-
-
Method Detail
-
execute
public Object execute(CosmosQuery query, Class<?> type, String collection)
Description copied from interface:CosmosQueryExecutionDeclare an execute function for different operations to call- Specified by:
executein interfaceCosmosQueryExecution- Parameters:
query- document query operationtype- domain typecollection- container to conduct query- Returns:
- Object according to execution result
-
-