TypedQuery<X> setParameter(
String name,
Object value
)
Bind an argument value to a named parameter.
- Parameters:
name
- parameter namevalue
- parameter value
- Return:
- the same query instance
- Throws:
- IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the argument is of incorrect type
- Since:
- JPA 2.0