Query setParameter(
String name,
Date value,
TemporalType temporalType
)
Bind an instance of java.util.Date to a named parameter.
- Parameters:
name- parameter namevalue- parameter valuetemporalType- temporal type
- Return:
- the same query instance
- Throws:
- IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type
- Since:
- JPA 1.0