java.lang.Object
org.dellroad.querystream.jpa.ParamBinding<T>
- Direct Known Subclasses:
CalendarParamBinding,DateParamBinding
Represents the binding of a value to a
Parameter.- See Also:
-
Query.setParameter(Parameter, Object)
-
Constructor Summary
ConstructorsConstructorDescriptionParamBinding(jakarta.persistence.Parameter<T> parameter, T value) Constructor. -
Method Summary
-
Constructor Details
-
ParamBinding
Constructor.- Parameters:
parameter- the parameter to setvalue- parameter value- Throws:
IllegalArgumentException- ifparameteris null
-
-
Method Details
-
getParameter
Get the parameter.- Returns:
- parameter to be bound
-
getValue
Get the parameter value.- Returns:
- value to be bound to parameter
-
applyTo
public void applyTo(jakarta.persistence.Query query) Apply this parameter binding to the given query.- Parameters:
query- the query to configure- Throws:
IllegalArgumentException- ifqueryis null
-
equals
-
hashCode
public int hashCode() -
toString
-