All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.procedure.internal.ProcedureParameterBindingImpl Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha2
Show newest version
/*
 * 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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy