setParameter(name, value) - JPA Query's method
Method javax.persistence.Query
Query setParameter(
String name,
Object value
)
- Parameters:
-
name
- parameter name -
value
- parameter value
- Returns:
- 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 1.0