void assertBound(Parameter<?> param) { if (!isBound(param)) { throw new IllegalStateException(_loc.get("param-not-bound", param, getQueryString(), getBoundParameterKeys()).getMessage()); } }
void assertBound(Parameter<?> param) { if (!isBound(param)) { throw new IllegalStateException(_loc.get("param-not-bound", param, getQueryString(), getBoundParameterKeys()).getMessage()); } }
void assertBound(Parameter<?> param) { if (!isBound(param)) { throw new IllegalStateException(_loc.get("param-not-bound", param, getQueryString(), getBoundParameterKeys()).getMessage()); } }
void assertBound(Parameter<?> param) { if (!isBound(param)) { throw new IllegalStateException(_loc.get("param-not-bound", param, getQueryString(), getBoundParameterKeys()).getMessage()); } }
/** * Return the value bound to the parameter. * * @param param * parameter object * @return parameter value * @throws IllegalStateException * if the parameter has not been been bound * @throws IllegalArgumentException * if the parameter does not belong to this query */ public <T> T getParameterValue(Parameter<T> p) { if (!isBound(p)) { throw new IllegalArgumentException(_loc.get("param-missing", p, getQueryString(), getBoundParameterKeys()) .getMessage()); } return (T) _boundParams.get(p); }
/** * Return the value bound to the parameter. * * @param param * parameter object * @return parameter value * @throws IllegalStateException * if the parameter has not been been bound * @throws IllegalArgumentException * if the parameter does not belong to this query */ public <T> T getParameterValue(Parameter<T> p) { if (!isBound(p)) { throw new IllegalArgumentException(_loc.get("param-missing", p, getQueryString(), getBoundParameterKeys()) .getMessage()); } return (T) _boundParams.get(p); }
/** * Return the value bound to the parameter. * * @param param * parameter object * @return parameter value * @throws IllegalStateException * if the parameter has not been been bound * @throws IllegalArgumentException * if the parameter does not belong to this query */ public <T> T getParameterValue(Parameter<T> p) { if (!isBound(p)) { throw new IllegalArgumentException(_loc.get("param-missing", p, getQueryString(), getBoundParameterKeys()) .getMessage()); } return (T) _boundParams.get(p); }
/** * Return the value bound to the parameter. * * @param param * parameter object * @return parameter value * @throws IllegalStateException * if the parameter has not been been bound * @throws IllegalArgumentException * if the parameter does not belong to this query */ public <T> T getParameterValue(Parameter<T> p) { if (!isBound(p)) { throw new IllegalArgumentException(_loc.get("param-missing", p, getQueryString(), getBoundParameterKeys()) .getMessage()); } return (T) _boundParams.get(p); }