StringBasedCosmosQuery Class
- java.
lang. Object - com.
azure. spring. data. cosmos. repository. query. AbstractCosmosQuery - com.
azure. spring. data. cosmos. repository. support. StringBasedCosmosQuery
- com.
- com.
public class StringBasedCosmosQuery
extends AbstractCosmosQuery
Cosmos query class to handle the annotated queries. This overrides the execution and runs the query directly
Constructor Summary
Constructor | Description |
---|---|
StringBasedCosmosQuery(CosmosQueryMethod queryMethod, CosmosOperations dbOperations) |
Constructor |
Method Summary
Modifier and Type | Method and Description |
---|---|
protected
Cosmos |
createQuery(CosmosParameterAccessor accessor)
Creates a query. |
Object |
execute(Object[] parameters)
Executes the AbstractCosmosQuery with the given parameters. |
protected boolean |
isCountQuery()
Return whether this is a count query. |
protected boolean |
isDeleteQuery()
Return whether this is a deletion query. |
protected boolean |
isExistsQuery()
Return whether this is an exists query. |
Methods inherited from AbstractCosmosQuery
Methods inherited from java.lang.Object
Constructor Details
StringBasedCosmosQuery
public StringBasedCosmosQuery(CosmosQueryMethod queryMethod, CosmosOperations dbOperations)
Constructor
Parameters:
Method Details
createQuery
protected CosmosQuery createQuery(CosmosParameterAccessor accessor)
Creates a query.
Overrides:
StringBasedCosmosQuery.createQuery(CosmosParameterAccessor accessor)Parameters:
execute
public Object execute(Object[] parameters)
Executes the AbstractCosmosQuery with the given parameters.
Overrides:
StringBasedCosmosQuery.execute(Object[] parameters)Parameters:
isCountQuery
protected boolean isCountQuery()
Return whether this is a count query.
Overrides:
StringBasedCosmosQuery.isCountQuery()isDeleteQuery
protected boolean isDeleteQuery()
Return whether this is a deletion query.
Overrides:
StringBasedCosmosQuery.isDeleteQuery()isExistsQuery
protected boolean isExistsQuery()
Return whether this is an exists query.
Overrides:
StringBasedCosmosQuery.isExistsQuery()Applies to
Azure SDK for Java