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(int position, Date value, TemporalType temporalType) {
final QueryParameterBinding binding = paramBindings.getBinding(position);
binding.setBindValue(value, temporalType);
return this;
}
use of org.hibernate.query.spi.QueryParameterBinding in project hibernate-orm by hibernate.
the class ProcedureCallImpl method setParameter.
@Override
@SuppressWarnings("unchecked")
public <P> ProcedureCallImplementor<R> setParameter(QueryParameter<P> parameter, P value, TemporalType temporalType) {
final QueryParameterBinding binding = paramBindings.getBinding(parameter);
binding.setBindValue(value, temporalType);
return this;
}
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, Object value, TemporalType temporalType) {
final QueryParameterBinding binding = paramBindings.getBinding(getParameterMetadata().getQueryParameter(name));
binding.setBindValue(value, temporalType);
return this;
}
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, Calendar value, TemporalType temporalType) {
final QueryParameterBinding binding = paramBindings.getBinding(getParameterMetadata().resolve(parameter));
binding.setBindValue(value, temporalType);
return this;
}
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, Calendar value, TemporalType temporalType) {
final QueryParameterBinding binding = paramBindings.getBinding(name);
binding.setBindValue(value, temporalType);
return this;
}
Aggregations