ReactiveCosmosQueryCreator Class

  • java.lang.Object
    • org.springframework.data.repository.query.parser.AbstractQueryCreator
      • com.azure.spring.data.cosmos.repository.query.ReactiveCosmosQueryCreator

public class ReactiveCosmosQueryCreator
extends org.springframework.data.repository.query.parser.AbstractQueryCreator<CosmosQuery,Criteria>

Class for reactive cosmos query creators that create criteria based queries from a PartTree.

Constructor Summary

Constructor Description
ReactiveCosmosQueryCreator(PartTree tree, ReactiveCosmosParameterAccessor accessor, MappingContext<?,CosmosPersistentProperty> mappingContext)

Creates a new ReactiveCosmosQueryCreator.

Method Summary

Modifier and Type Method and Description
protected Criteria and(Part part, Criteria base, Iterator<Object> parameters)
protected CosmosQuery complete(Criteria criteria, Sort sort)
protected Criteria create(Part part, Iterator<Object> parameters)
protected Criteria or(Criteria base, Criteria criteria)

Methods inherited from java.lang.Object

Methods inherited from org.springframework.data.repository.query.parser.AbstractQueryCreator

org.springframework.data.repository.query.parser.AbstractQueryCreator.and org.springframework.data.repository.query.parser.AbstractQueryCreator.complete org.springframework.data.repository.query.parser.AbstractQueryCreator.create org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery org.springframework.data.repository.query.parser.AbstractQueryCreator.or

Constructor Details

ReactiveCosmosQueryCreator

public ReactiveCosmosQueryCreator(PartTree tree, ReactiveCosmosParameterAccessor accessor, MappingContext mappingContext)

Creates a new ReactiveCosmosQueryCreator. ReactiveCosmosParameterAccessor is used to hand actual parameter values into the callback methods as well as to apply dynamic sorting via a Sort parameter.

Parameters:

tree - must not be null.
accessor - must not be null.
mappingContext - must not be null.

Method Details

and

protected Criteria and(Part part, Criteria base, Iterator parameters)

Overrides:

ReactiveCosmosQueryCreator.and(Part part, Criteria base, Iterator<Object> parameters)

Parameters:

part
base
parameters

complete

protected CosmosQuery complete(Criteria criteria, Sort sort)

Overrides:

ReactiveCosmosQueryCreator.complete(Criteria criteria, Sort sort)

Parameters:

criteria
sort

create

protected Criteria create(Part part, Iterator parameters)

Overrides:

ReactiveCosmosQueryCreator.create(Part part, Iterator<Object> parameters)

Parameters:

part
parameters

or

protected Criteria or(Criteria base, Criteria criteria)

Overrides:

ReactiveCosmosQueryCreator.or(Criteria base, Criteria criteria)

Parameters:

base
criteria

Applies to