Class AbstractReactiveCosmosQuery

  • All Implemented Interfaces:
    org.springframework.data.repository.query.RepositoryQuery
    Direct Known Subclasses:
    PartTreeReactiveCosmosQuery, StringBasedReactiveCosmosQuery

    public abstract class AbstractReactiveCosmosQuery
    extends Object
    implements org.springframework.data.repository.query.RepositoryQuery
    Abstract class for reactive cosmos query.
    • Constructor Detail

    • Method Detail

      • execute

        public Object execute​(Object[] parameters)
        Executes the AbstractReactiveCosmosQuery with the given parameters.
        Specified by:
        execute in interface org.springframework.data.repository.query.RepositoryQuery
        Parameters:
        parameters - must not be null.
        Returns:
        execution result. Can be null.
      • getExecution

        protected ReactiveCosmosQueryExecution getExecution​(org.springframework.data.repository.query.ReturnedType returnedType)
        Determines the appropriate execution path for a reactive query
        Parameters:
        returnedType - The return type of the method
        Returns:
        the execution type needed to handle the query
        Throws:
        IllegalArgumentException - if execution requires paging
      • getQueryMethod

        public ReactiveCosmosQueryMethod getQueryMethod()
        Get method of query
        Specified by:
        getQueryMethod in interface org.springframework.data.repository.query.RepositoryQuery
        Returns:
        ReactiveCosmosQueryMethod
      • isDeleteQuery

        protected abstract boolean isDeleteQuery()
        Returns:
        whether this is a deletion query.
      • isExistsQuery

        protected abstract boolean isExistsQuery()
        Returns:
        whether this is an exists query.
      • isCountQuery

        protected abstract boolean isCountQuery()
        Returns:
        whether this is a count query.
      • isPageQuery

        protected boolean isPageQuery()
        Returns:
        whether this is a page query.