Class StringBasedReactiveCosmosQuery
- java.lang.Object
-
- com.azure.spring.data.cosmos.repository.query.AbstractReactiveCosmosQuery
-
- com.azure.spring.data.cosmos.repository.support.StringBasedReactiveCosmosQuery
-
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
public class StringBasedReactiveCosmosQuery extends AbstractReactiveCosmosQuery
Cosmos query class to handle the annotated queries. This overrides the execution and runs the query directly
-
-
Field Summary
-
Fields inherited from class com.azure.spring.data.cosmos.repository.query.AbstractReactiveCosmosQuery
operations
-
-
Constructor Summary
Constructors Constructor Description StringBasedReactiveCosmosQuery(ReactiveCosmosQueryMethod queryMethod, ReactiveCosmosOperations dbOperations)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CosmosQuerycreateQuery(ReactiveCosmosParameterAccessor accessor)Creates a query.Objectexecute(Object[] parameters)Executes theAbstractReactiveCosmosQuerywith the given parameters.protected booleanisCountQuery()protected booleanisDeleteQuery()protected booleanisExistsQuery()-
Methods inherited from class com.azure.spring.data.cosmos.repository.query.AbstractReactiveCosmosQuery
getExecution, getQueryMethod, isPageQuery
-
-
-
-
Constructor Detail
-
StringBasedReactiveCosmosQuery
public StringBasedReactiveCosmosQuery(ReactiveCosmosQueryMethod queryMethod, ReactiveCosmosOperations dbOperations)
Constructor- Parameters:
queryMethod- the query methoddbOperations- the reactive cosmos operations
-
-
Method Detail
-
createQuery
protected CosmosQuery createQuery(ReactiveCosmosParameterAccessor accessor)
Description copied from class:AbstractReactiveCosmosQueryCreates a query.- Specified by:
createQueryin classAbstractReactiveCosmosQuery- Parameters:
accessor- Reactive Cosmos parameter accessor.- Returns:
- a Cosmos query.
-
execute
public Object execute(Object[] parameters)
Description copied from class:AbstractReactiveCosmosQueryExecutes theAbstractReactiveCosmosQuerywith the given parameters.- Specified by:
executein interfaceorg.springframework.data.repository.query.RepositoryQuery- Overrides:
executein classAbstractReactiveCosmosQuery- Parameters:
parameters- must not be null.- Returns:
- execution result. Can be null.
-
isDeleteQuery
protected boolean isDeleteQuery()
- Specified by:
isDeleteQueryin classAbstractReactiveCosmosQuery- Returns:
- whether this is a deletion query.
-
isExistsQuery
protected boolean isExistsQuery()
- Specified by:
isExistsQueryin classAbstractReactiveCosmosQuery- Returns:
- whether this is an exists query.
-
isCountQuery
protected boolean isCountQuery()
- Specified by:
isCountQueryin classAbstractReactiveCosmosQuery- Returns:
- whether this is a count query.
-
-