StringBasedCosmosQuery Class

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 CosmosQuery 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:

queryMethod - the CosmosQueryMethod
dbOperations - the CosmosOperations

Method Details

createQuery

protected CosmosQuery createQuery(CosmosParameterAccessor accessor)

Creates a query.

Overrides:

StringBasedCosmosQuery.createQuery(CosmosParameterAccessor accessor)

Parameters:

accessor

execute

public Object execute(Object[] parameters)

Executes the AbstractCosmosQuery with the given parameters.

Overrides:

StringBasedCosmosQuery.execute(Object[] parameters)

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