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

org.hibernate.jpa.spi.NullTypeBindableParameterRegistration Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
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.jpa.spi;

/**
 * A {@link ParameterRegistration} that allows providing Java type information when
 * binding a null value for a parameter when there is no other available type information
 * for that parameter.
 *
 * @author Gail Badner
 */
public interface NullTypeBindableParameterRegistration extends ParameterRegistration {

	/**
	 * If bindable, bind a null value using the provided parameter type.
	 * This method is only valid if {@link #getParameterType} returns {@code null}.
	 *
	 * @param nullParameterType the Java type to be used for binding the null value;
	 * must be non-null.
	 *
	 * @throws IllegalArgumentException {@code parameterType} is null or if
	 * {@link #getParameterType} does not return null.
	 */
	public void bindNullValue(Class nullParameterType);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy