org.hibernate.procedure.internal.ProcedureParameterBindingImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.procedure.internal;
import org.hibernate.metamodel.model.domain.spi.AllowableParameterType;
import org.hibernate.procedure.ProcedureParameterBinding;
import org.hibernate.procedure.spi.ProcedureParameterBindingImplementor;
import org.hibernate.procedure.spi.ProcedureParameterImplementor;
import org.hibernate.query.internal.QueryParameterBindingImpl;
import org.hibernate.query.spi.QueryParameterBindingTypeResolver;
/**
* Implementation of the {@link ProcedureParameterBinding} contract.
*
* @author Steve Ebersole
*/
public class ProcedureParameterBindingImpl
extends QueryParameterBindingImpl
implements ProcedureParameterBindingImplementor {
public ProcedureParameterBindingImpl(
ProcedureParameterImplementor queryParameter,
QueryParameterBindingTypeResolver typeResolver) {
super( queryParameter, typeResolver, true );
}
public ProcedureParameterBindingImpl(
AllowableParameterType bindType,
ProcedureParameterImplementor queryParameter,
QueryParameterBindingTypeResolver typeResolver) {
super( queryParameter, typeResolver, bindType, true );
}
@Override
public T getValue() {
return super.getBindValue();
}
@Override
public AllowableParameterType getBindType() {
return super.getBindType();
}
}