Interface ParameterContext<Context extends ParameterContext>

  • All Known Subinterfaces:
    Query
    All Known Implementing Classes:
    BaseQuery

    public interface ParameterContext<Context extends ParameterContext>
    Since:
    9.0
    Author:
    anistor@redhat.com
    • Method Detail

      • getParameters

        Map<String,​Object> getParameters()
        Returns the named parameters Map.
        Returns:
        the named parameters (unmodifiable) or null if the query does not have parameters
      • setParameter

        Context setParameter​(String paramName,
                             Object paramValue)
        Sets the value of a named parameter.
        Parameters:
        paramName - the parameters name (non-empty and not null)
        paramValue - a non-null value
        Returns:
        itself
      • setParameters

        Context setParameters​(Map<String,​Object> paramValues)
        Sets multiple named parameters at once. Parameters names cannot be empty or null. Parameter values must not be null.
        Parameters:
        paramValues - a Map of parameters
        Returns:
        itself