Search in sources :

Example 1 with ParameterBindImpl

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;
}
Also used : ParameterBindImpl(org.hibernate.procedure.internal.ParameterBindImpl) ParameterBind(org.hibernate.procedure.ParameterBind)

Aggregations

ParameterBind (org.hibernate.procedure.ParameterBind)1 ParameterBindImpl (org.hibernate.procedure.internal.ParameterBindImpl)1