public abstract class AbstractCosmosQuery extends Object implements org.springframework.data.repository.query.RepositoryQuery
| Modifier and Type | Field and Description |
|---|---|
protected CosmosOperations |
operations |
| Constructor and Description |
|---|
AbstractCosmosQuery(CosmosQueryMethod method,
CosmosOperations operations)
Initialization
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract CosmosQuery |
createQuery(CosmosParameterAccessor accessor) |
Object |
execute(Object[] parameters)
Executes the
AbstractCosmosQuery with the given parameters. |
protected CosmosQueryExecution |
getExecution(CosmosParameterAccessor accessor,
org.springframework.data.repository.query.ReturnedType returnedType)
Determines the appropriate execution path for a query
|
CosmosQueryMethod |
getQueryMethod()
Get method of query
|
protected boolean |
isCollectionQuery() |
protected abstract boolean |
isCountQuery() |
protected abstract boolean |
isDeleteQuery() |
protected abstract boolean |
isExistsQuery() |
protected boolean |
isPageQuery() |
protected boolean |
isSliceQuery() |
protected final CosmosOperations operations
public AbstractCosmosQuery(CosmosQueryMethod method, CosmosOperations operations)
method - CosmosQueryMethodoperations - CosmosOperationspublic Object execute(Object[] parameters)
AbstractCosmosQuery with the given parameters.execute in interface org.springframework.data.repository.query.RepositoryQueryparameters - must not be null.protected CosmosQueryExecution getExecution(CosmosParameterAccessor accessor, org.springframework.data.repository.query.ReturnedType returnedType)
returnedType - The return type of the methodaccessor - Object for accessing method parameterspublic CosmosQueryMethod getQueryMethod()
getQueryMethod in interface org.springframework.data.repository.query.RepositoryQueryprotected abstract CosmosQuery createQuery(CosmosParameterAccessor accessor)
protected abstract boolean isDeleteQuery()
protected abstract boolean isExistsQuery()
protected abstract boolean isCountQuery()
protected boolean isPageQuery()
protected boolean isCollectionQuery()
protected boolean isSliceQuery()
Copyright © 2021 Microsoft Corporation. All rights reserved.