CosmosQueryCreator Class
- java.
lang. Object - org.
springframework. data. repository. query. parser. AbstractQueryCreator - com.
azure. spring. data. cosmos. repository. query. CosmosQueryCreator
- com.
- org.
public class CosmosQueryCreator
extends org.springframework.data.repository.query.parser.AbstractQueryCreator<CosmosQuery,Criteria>
TODO: String based query, based on how cosmosDB provides. StringCosmosQuery class, How to bind values to the query. if CosmosDb already has binding capability, if not we would have to do it here in some creative way.query creator are associated with part tree queries,
Constructor Summary
Constructor | Description |
---|---|
CosmosQueryCreator(PartTree tree, CosmosParameterAccessor accessor, MappingContext<?,CosmosPersistentProperty> mappingContext) |
Creates a new CosmosQueryCreator. |
Method Summary
Modifier and Type | Method and Description |
---|---|
protected Criteria | and(Part part, Criteria base, Iterator<Object> parameters) |
protected
Cosmos |
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
Constructor Details
CosmosQueryCreator
public CosmosQueryCreator(PartTree tree, CosmosParameterAccessor accessor, MappingContext mappingContext)
Creates a new CosmosQueryCreator. CosmosParameterAccessor is used to hand actual parameter values into the callback methods as well as to apply dynamic sorting via a Sort parameter.
Parameters:
Method Details
and
protected Criteria and(Part part, Criteria base, Iterator
Azure SDK for Java