diff --git a/hibernate-core/src/main/java/org/hibernate/jpa/spi/NullTypeBindableParameterRegistration.java b/hibernate-core/src/main/java/org/hibernate/jpa/spi/NullTypeBindableParameterRegistration.java deleted file mode 100644 index a421ed7385..0000000000 --- a/hibernate-core/src/main/java/org/hibernate/jpa/spi/NullTypeBindableParameterRegistration.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 - * - * @deprecated this is no longer used and will be removed - */ -@Deprecated(since = "6.0", forRemoval = true) -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. - */ - void bindNullValue(Class nullParameterType); -} diff --git a/hibernate-core/src/main/java/org/hibernate/jpa/spi/ParameterBind.java b/hibernate-core/src/main/java/org/hibernate/jpa/spi/ParameterBind.java deleted file mode 100644 index 0464bf1439..0000000000 --- a/hibernate-core/src/main/java/org/hibernate/jpa/spi/ParameterBind.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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; - -import jakarta.persistence.TemporalType; - -/** - * Represents the value currently bound to a particular parameter. - * - * @param - * - * @author Steve Ebersole - * - * @deprecated this is no longer used and will be removed - */ -@Deprecated(since = "6", forRemoval = true) -public interface ParameterBind { - /** - * Access the bound value - * - * @return The bound value - */ - T getValue(); - - /** - * The temporal type that will be used to "interpret" Date-like values (if applicable). - * - * @return The temporal type, or {@code null} - */ - TemporalType getSpecifiedTemporalType(); -} diff --git a/hibernate-core/src/main/java/org/hibernate/jpa/spi/ParameterRegistration.java b/hibernate-core/src/main/java/org/hibernate/jpa/spi/ParameterRegistration.java deleted file mode 100644 index d7837b651b..0000000000 --- a/hibernate-core/src/main/java/org/hibernate/jpa/spi/ParameterRegistration.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 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; - -import jakarta.persistence.Parameter; -import jakarta.persistence.ParameterMode; -import jakarta.persistence.Query; -import jakarta.persistence.TemporalType; - -/** - * Hibernate specific extension to the JPA {@link jakarta.persistence.Parameter} contract as known to the - * {@link jakarta.persistence.Query} and {@link jakarta.persistence.StoredProcedureQuery} implementations. - * Used to track information known about the parameter. - *

- * For parameter information as known to JPA criteria queries, - * see {@link org.hibernate.query.sqm.tree.expression.JpaCriteriaParameter} instead. - * - * @author Steve Ebersole - * - * @deprecated this is no longer used and will be removed - */ -@Deprecated(since = "6", forRemoval = true) -public interface ParameterRegistration extends Parameter { - /** - * JPA has a different definition of positional parameters than what legacy Hibernate HQL had. - * In JPA, the parameter holders are labelled (named). At any rate the semantics are different, - * and we often need to understand which we are dealing with (and applications might too). - * - * @return {@code true} if this is a JPA-style ordinal parameter; - * {@code false} indicated we have either a named parameter (that is, {@link #getName()} - * would return a non-{@code null} value) or a native Hibernate positional parameter. - * - * @deprecated this method is no longer used - */ - @Deprecated(since = "6") - boolean isJpaPositionalParameter(); - - /** - * Access to the query that this parameter belongs to. - * - * @return The defining query - */ - Query getQuery(); - - /** - * Retrieves the parameter "mode" which describes how the parameter is defined in the actual database procedure - * definition. (Is it an INPUT parameter? An OUTPUT parameter?) - * - * @return The parameter mode. - */ - ParameterMode getMode(); - - /** - * Can we bind (set) values on this parameter? Generally this is {@code true}, but would not be in the case - * of parameters with OUT or REF_CURSOR mode. - * - * @return Whether the parameter is bindable (can set be called). - */ - boolean isBindable(); - - /** - * If bindable, bind the value. - * - * @param value The value to bind. - */ - void bindValue(T value); - - /** - * If bindable, bind the value using the specific temporal type. - * - * @param value The value to bind - * @param specifiedTemporalType The temporal type to use in binding - */ - void bindValue(T value, TemporalType specifiedTemporalType); - - /** - * If bindable, get the current binding. - * - * @return The current binding - */ - ParameterBind getBind(); -} diff --git a/hibernate-core/src/main/java/org/hibernate/jpa/spi/StoredProcedureQueryParameterRegistration.java b/hibernate-core/src/main/java/org/hibernate/jpa/spi/StoredProcedureQueryParameterRegistration.java deleted file mode 100644 index f2514d2270..0000000000 --- a/hibernate-core/src/main/java/org/hibernate/jpa/spi/StoredProcedureQueryParameterRegistration.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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; - -/** - * ParameterRegistration extension specifically for stored procedure parameters - * exposing some functionality of Hibernate's native {@link ParameterRegistration} contract - * - * @author Steve Ebersole - * - * @deprecated this is no longer used and will be removed - */ -@Deprecated(since = "6", forRemoval = true) -public interface StoredProcedureQueryParameterRegistration extends ParameterRegistration { - /** - * How will an unbound value be handled in terms of the JDBC parameter? - * - * @return {@code true} here indicates that NULL should be passed; {@code false} indicates - * that it is ignored. - */ - boolean isPassNullsEnabled(); - - /** - * Controls how unbound values for this IN/INOUT parameter registration will be handled prior to - * execution. - * - * @param enabled {@code true} indicates that the NULL should be passed; {@code false} indicates it should not. - * - */ - void enablePassingNulls(boolean enabled); -}