Package org.dellroad.querystream.jpa
Class ParamBinding<T>
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:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ParamBinding
Constructor.- Parameters:
parameter
- the parameter to setvalue
- parameter value- Throws:
IllegalArgumentException
- ifparameter
is 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
Apply this parameter binding to the given query.- Parameters:
query
- the query to configure- Throws:
IllegalArgumentException
- ifquery
is null
-
equals
-
hashCode
public int hashCode() -
toString
-