Class BaseQuery

    • Field Detail

      • queryString

        protected final String queryString
      • projection

        protected final String[] projection
      • startOffset

        protected int startOffset
      • maxResults

        protected int maxResults
    • Method Detail

      • getJPAQuery

        @Deprecated
        public String getJPAQuery()
        Deprecated.
        To be removed in Infinispan 10.0. Use getQueryString() instead.
        Returns the query string.
        Returns:
        the query string
      • getQueryString

        public String getQueryString()
        Returns the Ickle query string.
        Specified by:
        getQueryString in interface Query
        Returns:
        the Ickle query string
      • getNamedParameters

        @Deprecated
        public Map<String,​Object> getNamedParameters()
        Deprecated.
        To be removed in Infinispan 10.0. Use getParameters() instead.
        Returns the named parameters Map.
        Returns:
        the named parameters (unmodifiable) or null if the query does not have parameters
      • setParameter

        public Query setParameter​(String paramName,
                                  Object paramValue)
        Description copied from interface: ParameterContext
        Sets the value of a named parameter.
        Specified by:
        setParameter in interface ParameterContext<Query>
        Parameters:
        paramName - the parameters name (non-empty and not null)
        paramValue - a non-null value
        Returns:
        itself
      • setParameters

        public Query setParameters​(Map<String,​Object> paramValues)
        Description copied from interface: ParameterContext
        Sets multiple named parameters at once. Parameters names cannot be empty or null. Parameter values must not be null.
        Specified by:
        setParameters in interface ParameterContext<Query>
        Parameters:
        paramValues - a Map of parameters
        Returns:
        itself
      • resetQuery

        public abstract void resetQuery()
        Reset internal state after pagination or query parameters are modified. This is needed to ensure the next execution of the query uses the new values.
      • validateNamedParameters

        public void validateNamedParameters()
        Ensure all named parameters have non-null values.
      • getProjection

        public String[] getProjection()
        Specified by:
        getProjection in interface Query
        Returns:
        the values for query projections or null if the query does not have projections.
      • getStartOffset

        public long getStartOffset()
      • getMaxResults

        public int getMaxResults()