Package org.hibernate.query.spi
Interface QueryParameterListBinding<T>
@Incubatingpublic interfaceQueryParameterListBinding<T>
Represents a "parameter list" binding: aka the binding of a collection of values for a single query parameter.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypegetBindType()Get the Type currently associated with this binding.Collection<T>getBindValues()Get the values currently bound.voidsetBindValues(Collection<T> values)Sets the parameter binding values.voidsetBindValues(Collection<T> values,TemporalType clarifiedTemporalType)Sets the parameter binding value using the explicit TemporalType in regards to the individual values.voidsetBindValues(Collection<T> values,BindableType clarifiedType)Sets the parameter binding values using the explicit Type in regards to the individual values.
Method Detail
setBindValues
void setBindValues(Collection<T> values)
Sets the parameter binding values. The inherent parameter type (if known) is assumed in regards to the individual values.- Parameters:
values- The bind values
setBindValues
void setBindValues(Collection<T> values,BindableType clarifiedType)
Sets the parameter binding values using the explicit Type in regards to the individual values.- Parameters:
values- The bind valuesclarifiedType- The explicit Type to use
setBindValues
void setBindValues(Collection<T> values,TemporalType clarifiedTemporalType)
Sets the parameter binding value using the explicit TemporalType in regards to the individual values.- Parameters:
values- The bind valuesclarifiedTemporalType- The temporal type to use
getBindValues
Collection<T> getBindValues()
Get the values currently bound.- Returns:
- The currently bound values
getBindType
Type getBindType()
Get the Type currently associated with this binding.- Returns:
- The currently associated Type