Jakarta Persistence (JPA) Method
TypedQuery<X> setParameter(
String name,
Calendar value,
TemporalType temporalType
)
Bind an instance of
Calendar to a named parameter. - Parameters:
name- parameter nametemporalType- temporal typevalue- parameter value
- Returns:
- the same query instance.
- Throws:
- if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type.IllegalArgumentException
- Deprecated:
- Newly-written code should use the date/time types defined in
java.time.
- Since:
- Jakarta Persistence (JPA) 1.0