AbstractCosmosQuery Class
- java.
lang. Object - com.
azure. spring. data. cosmos. repository. query. AbstractCosmosQuery
- com.
Implements
public abstract class AbstractCosmosQuery
implements org.springframework.data.repository.query.RepositoryQuery
Abstract class for cosmos query.
Field Summary
Modifier and Type | Field and Description |
---|---|
protected final
Cosmos |
operations
Cosmos |
Constructor Summary
Constructor | Description |
---|---|
AbstractCosmosQuery(CosmosQueryMethod method, CosmosOperations operations) |
Initialization |
Method Summary
Modifier and Type | Method and Description |
---|---|
protected abstract
Cosmos |
createQuery(CosmosParameterAccessor accessor)
Creates a query. |
Object |
execute(Object[] parameters)
Executes the AbstractCosmosQuery with the given parameters. |
protected
Cosmos |
getExecution(CosmosParameterAccessor accessor, ReturnedType returnedType)
Determines the appropriate execution path for a query |
Cosmos |
getQueryMethod()
Get method of query |
protected boolean |
isCollectionQuery()
Return whether this is a collection query. |
protected abstract boolean |
isCountQuery()
Return whether this is a count query. |
protected abstract boolean |
isDeleteQuery()
Return whether this is a deletion query. |
protected abstract boolean |
isExistsQuery()
Return whether this is an exists query. |
protected boolean |
isPageQuery()
Return whether this is a page query. |
protected boolean |
isSliceQuery()
Return whether this is a slice query. |
Methods inherited from java.lang.Object
Field Details
operations
protected final CosmosOperations operations
CosmosOperations
Constructor Details
AbstractCosmosQuery
public AbstractCosmosQuery(CosmosQueryMethod method, CosmosOperations operations)
Initialization
Parameters:
Method Details
createQuery
protected abstract CosmosQuery createQuery(CosmosParameterAccessor accessor)
Creates a query.
Parameters:
Returns:
execute
public Object execute(Object[] parameters)
Executes the AbstractCosmosQuery with the given parameters.
Parameters:
Returns:
getExecution
protected CosmosQueryExecution getExecution(CosmosParameterAccessor accessor, ReturnedType returnedType)
Determines the appropriate execution path for a query
Parameters:
Returns:
getQueryMethod
public CosmosQueryMethod getQueryMethod()
Get method of query
Returns:
isCollectionQuery
protected boolean isCollectionQuery()
Return whether this is a collection query.
Returns:
isCountQuery
protected abstract boolean isCountQuery()
Return whether this is a count query.
Returns:
isDeleteQuery
protected abstract boolean isDeleteQuery()
Return whether this is a deletion query.
Returns:
isExistsQuery
protected abstract boolean isExistsQuery()
Return whether this is an exists query.
Returns:
isPageQuery
protected boolean isPageQuery()
Return whether this is a page query.
Returns:
isSliceQuery
protected boolean isSliceQuery()
Return whether this is a slice query.
Returns:
Applies to
Azure SDK for Java