Compartilhar via


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()
protected boolean isDeleteQuery()
protected boolean isExistsQuery()

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()

Overrides:

StringBasedCosmosQuery.isCountQuery()

isDeleteQuery

protected boolean isDeleteQuery()

Overrides:

StringBasedCosmosQuery.isDeleteQuery()

isExistsQuery

protected boolean isExistsQuery()

Overrides:

StringBasedCosmosQuery.isExistsQuery()

Applies to