use of org.hibernate.procedure.internal.ParameterBindImpl in project hibernate-orm by hibernate.
the class ProcedureParamBindings method getBinding.
@Override
public <T> QueryParameterBinding<T> getBinding(QueryParameter<T> parameter) {
final ProcedureParameterImplementor<T> procParam = parameterMetadata.resolve(parameter);
ParameterBind binding = bindingMap.get(procParam);
if (binding == null) {
if (!parameterMetadata.containsReference(parameter)) {
throw new IllegalArgumentException("Passed parameter is not registered with this query");
}
binding = new ParameterBindImpl(procParam, this);
bindingMap.put(procParam, binding);
}
return binding;
}
Aggregations