Interface ParameterContext<Context extends ParameterContext>

  • All Known Subinterfaces:
    Query

    @Deprecated
    public interface ParameterContext<Context extends ParameterContext>
    Deprecated.
    since 10.1. See deprecation note on QueryBuilder.
    Since:
    9.0
    Author:
    anistor@redhat.com
    • Method Detail

      • getParameters

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

        Context setParameter​(java.lang.String paramName,
                             java.lang.Object paramValue)
        Deprecated.
        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​(java.util.Map<java.lang.String,​java.lang.Object> paramValues)
        Deprecated.
        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