AbstractReactiveCosmosQuery Class
- java.
lang. Object - com.
azure. spring. data. cosmos. repository. query. AbstractReactiveCosmosQuery
- com.
Implements
public abstract class AbstractReactiveCosmosQuery
implements org.springframework.data.repository.query.RepositoryQuery
Abstract class for reactive cosmos query.
Field Summary
Modifier and Type | Field and Description |
---|---|
protected final
Reactive |
operations
Reactive Cosmos operations |
Constructor Summary
Constructor | Description |
---|---|
AbstractReactiveCosmosQuery(ReactiveCosmosQueryMethod method, ReactiveCosmosOperations operations) |
Initialization |
Method Summary
Modifier and Type | Method and Description |
---|---|
protected abstract
Cosmos |
createQuery(ReactiveCosmosParameterAccessor accessor)
Creates a query. |
Object |
execute(Object[] parameters)
Executes the AbstractReactiveCosmosQuery with the given parameters. |
protected
Reactive |
getExecution(ReturnedType returnedType)
Determines the appropriate execution path for a reactive query |
Reactive |
getQueryMethod()
Get method of 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. |
Methods inherited from java.lang.Object
Field Details
operations
protected final ReactiveCosmosOperations operations
Reactive Cosmos operations
Constructor Details
AbstractReactiveCosmosQuery
public AbstractReactiveCosmosQuery(ReactiveCosmosQueryMethod method, ReactiveCosmosOperations operations)
Initialization
Parameters:
Method Details
createQuery
protected abstract CosmosQuery createQuery(ReactiveCosmosParameterAccessor accessor)
Creates a query.
Parameters:
Returns:
execute
public Object execute(Object[] parameters)
Executes the AbstractReactiveCosmosQuery with the given parameters.
Parameters:
Returns:
getExecution
protected ReactiveCosmosQueryExecution getExecution(ReturnedType returnedType)
Determines the appropriate execution path for a reactive query
Parameters:
Returns:
getQueryMethod
public ReactiveCosmosQueryMethod getQueryMethod()
Get method of 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:
Applies to
Azure SDK for Java