TypedQuery<X> setParameter(
int position,
Date value,
TemporalType temporalType
)
Bind an instance of java.util.Date to a positional parameter.
- Parameters:
position- positionvalue- parameter valuetemporalType- temporal type
- Return:
- the same query instance
- Throws:
- IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the value argument is of incorrect type
- Since:
- JPA 2.0