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
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
ConstructorDescriptionStringBasedReactiveCosmosQuery
(ReactiveCosmosQueryMethod queryMethod, ReactiveCosmosOperations dbOperations) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected CosmosQuery
createQuery
(ReactiveCosmosParameterAccessor accessor) Creates a query.Executes theAbstractReactiveCosmosQuery
with the given parameters.protected boolean
protected boolean
protected boolean
Methods inherited from class com.azure.spring.data.cosmos.repository.query.AbstractReactiveCosmosQuery
getExecution, getQueryMethod, isPageQuery
-
Constructor Details
-
StringBasedReactiveCosmosQuery
public StringBasedReactiveCosmosQuery(ReactiveCosmosQueryMethod queryMethod, ReactiveCosmosOperations dbOperations) Constructor- Parameters:
queryMethod
- the query methoddbOperations
- the reactive cosmos operations
-
-
Method Details
-
createQuery
Description copied from class:AbstractReactiveCosmosQuery
Creates a query.- Specified by:
createQuery
in classAbstractReactiveCosmosQuery
- Parameters:
accessor
- Reactive Cosmos parameter accessor.- Returns:
- a Cosmos query.
-
execute
Description copied from class:AbstractReactiveCosmosQuery
Executes theAbstractReactiveCosmosQuery
with the given parameters.- Specified by:
execute
in interfaceorg.springframework.data.repository.query.RepositoryQuery
- Overrides:
execute
in classAbstractReactiveCosmosQuery
- Parameters:
parameters
- must not be null.- Returns:
- execution result. Can be null.
-
isDeleteQuery
protected boolean isDeleteQuery()- Specified by:
isDeleteQuery
in classAbstractReactiveCosmosQuery
- Returns:
- whether this is a deletion query.
-
isExistsQuery
protected boolean isExistsQuery()- Specified by:
isExistsQuery
in classAbstractReactiveCosmosQuery
- Returns:
- whether this is an exists query.
-
isCountQuery
protected boolean isCountQuery()- Specified by:
isCountQuery
in classAbstractReactiveCosmosQuery
- Returns:
- whether this is a count query.
-