Interface ParameterContext<Context extends ParameterContext>

All Known Subinterfaces:
Query<T>

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

    • getParameters

      Map<String,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(String paramName, 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(Map<String,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