Class PartTreeCosmosQuery
java.lang.Object
com.azure.spring.data.cosmos.repository.query.AbstractCosmosQuery
com.azure.spring.data.cosmos.repository.query.PartTreeCosmosQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
Cosmos query class with
PartTree to parse a String into a tree or PartTree.OrParts consisting
of simple Part instances in turn.-
Field Summary
Fields inherited from class com.azure.spring.data.cosmos.repository.query.AbstractCosmosQuery
operations -
Constructor Summary
ConstructorsConstructorDescriptionPartTreeCosmosQuery(CosmosQueryMethod method, CosmosOperations operations) Initialization -
Method Summary
Modifier and TypeMethodDescriptionprotected CosmosQuerycreateQuery(CosmosParameterAccessor accessor) Creates a query.protected booleanReturn whether this is a count query.protected booleanReturn whether this is a deletion query.protected booleanReturn whether this is an exists query.Methods inherited from class com.azure.spring.data.cosmos.repository.query.AbstractCosmosQuery
execute, getExecution, getQueryMethod, isCollectionQuery, isPageQuery, isSliceQuery
-
Constructor Details
-
PartTreeCosmosQuery
Initialization- Parameters:
method- CosmosQueryMethodoperations- CosmosOperations
-
-
Method Details
-
createQuery
Description copied from class:AbstractCosmosQueryCreates a query.- Specified by:
createQueryin classAbstractCosmosQuery- Parameters:
accessor- Cosmos parameter accessor.- Returns:
- a Cosmos query.
-
isDeleteQuery
protected boolean isDeleteQuery()Description copied from class:AbstractCosmosQueryReturn whether this is a deletion query.- Specified by:
isDeleteQueryin classAbstractCosmosQuery- Returns:
- whether this is a deletion query.
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractCosmosQueryReturn whether this is an exists query.- Specified by:
isExistsQueryin classAbstractCosmosQuery- Returns:
- whether this is an exists query.
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractCosmosQueryReturn whether this is a count query.- Specified by:
isCountQueryin classAbstractCosmosQuery- Returns:
- whether this is a count query.
-