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
ConstructorsConstructorDescriptionStringBasedReactiveCosmosQuery(ReactiveCosmosQueryMethod queryMethod, ReactiveCosmosOperations dbOperations) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected CosmosQuerycreateQuery(ReactiveCosmosParameterAccessor accessor) Creates a query.Executes theAbstractReactiveCosmosQuerywith the given parameters.protected booleanReturn whether this is a count query.protected booleanReturn whether this is a deletion query.protected booleanReturn whether this is an exists query.protected booleanThis method is used to determine if the query is a sum query.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:AbstractReactiveCosmosQueryCreates a query.- Specified by:
createQueryin classAbstractReactiveCosmosQuery- Parameters:
accessor- Reactive Cosmos parameter accessor.- Returns:
- a Cosmos query.
-
execute
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()Description copied from class:AbstractReactiveCosmosQueryReturn whether this is a deletion query.- Specified by:
isDeleteQueryin classAbstractReactiveCosmosQuery- Returns:
- whether this is a deletion query.
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractReactiveCosmosQueryReturn whether this is an exists query.- Specified by:
isExistsQueryin classAbstractReactiveCosmosQuery- Returns:
- whether this is an exists query.
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractReactiveCosmosQueryReturn whether this is a count query.- Specified by:
isCountQueryin classAbstractReactiveCosmosQuery- Returns:
- whether this is a count query.
-
isSumQuery
protected boolean isSumQuery()This method is used to determine if the query is a sum query.- Returns:
- boolean if the query is a sum query
-