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
ConstructorsConstructorDescriptionSingleEntityExecution(CosmosOperations operations, org.springframework.data.repository.query.ReturnedType returnedType) Creates a new instance of single-entity execution. -
Method Summary
Modifier and TypeMethodDescriptionexecute(CosmosQuery query, Class<?> type, String collection) Declare an execute function for different operations to call
-
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 operationsreturnedType- the returned type
-
-
Method Details
-
execute
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
-