setParameter(position, value) - JPA TypedQuery's method

Method
javax.persistence.TypedQuery
TypedQuery<X> setParameter(
  int position,
  Object value
)

Bind an argument to a positional parameter.
Parameters:
position - position
value - parameter value
Returns:
the same query instance
Throws:
IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the argument is of incorrect type
Since:
JPA 2.0