ObjectDB ObjectDB

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

Method
javax.persistence.TypedQuery
TypedQuery<X> setParameter(
  String name,
  Object value
)

Bind an argument to a named parameter.
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 2.0