Search in sources :

Example 21 with QueryParameterBinding

use of org.hibernate.query.spi.QueryParameterBinding in project hibernate-orm by hibernate.

the class ProcedureCallImpl method setParameter.

@Override
@SuppressWarnings("unchecked")
public ProcedureCallImplementor<R> setParameter(Parameter parameter, Date value, TemporalType temporalType) {
    final QueryParameterBinding binding = paramBindings.getBinding(getParameterMetadata().resolve(parameter));
    binding.setBindValue(value, temporalType);
    return this;
}
Also used : QueryParameterBinding(org.hibernate.query.spi.QueryParameterBinding)

Example 22 with QueryParameterBinding

use of org.hibernate.query.spi.QueryParameterBinding in project hibernate-orm by hibernate.

the class ProcedureCallImpl method setParameter.

@Override
@SuppressWarnings("unchecked")
public ProcedureCallImplementor<R> setParameter(String name, Date value, TemporalType temporalType) {
    final QueryParameterBinding binding = paramBindings.getBinding(name);
    binding.setBindValue(value, temporalType);
    return this;
}
Also used : QueryParameterBinding(org.hibernate.query.spi.QueryParameterBinding)

Aggregations

QueryParameterBinding (org.hibernate.query.spi.QueryParameterBinding)22 HashMap (java.util.HashMap)4 Map (java.util.Map)4 TreeMap (java.util.TreeMap)4 QueryParameterException (org.hibernate.QueryParameterException)3 QueryParameter (org.hibernate.query.QueryParameter)3 SerializableType (org.hibernate.type.SerializableType)3 Type (org.hibernate.type.Type)3 QueryParameterListBinding (org.hibernate.query.spi.QueryParameterListBinding)2 Collection (java.util.Collection)1 QueryException (org.hibernate.QueryException)1 Dialect (org.hibernate.dialect.Dialect)1 NamedParameterDescriptor (org.hibernate.engine.query.spi.NamedParameterDescriptor)1 OrdinalParameterDescriptor (org.hibernate.engine.query.spi.OrdinalParameterDescriptor)1 TypedValue (org.hibernate.engine.spi.TypedValue)1