Jakarta Persistence (JPA) Method
TypedQuery<X> setParameter(
int position,
Object value
)
Bind an argument value to a positional parameter.
- Parameters:
position- positionvalue- parameter value
- Returns:
- the same query instance.
- Throws:
- if position does not correspond to a positional parameter of the query or if the argument is of incorrect type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0