remove the unused ParameterRegistration stuff in org.hibernate.jpa.spi
these types appear to be already unused in H5! this can't possibly break anything: anything using it is already broken
This commit is contained in:
parent
81a3541d26
commit
f8b50b39d7
|
@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
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<T> extends ParameterRegistration<T> {
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.jpa.spi;
|
||||
|
||||
import jakarta.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
* Represents the value currently bound to a particular parameter.
|
||||
*
|
||||
* @param <T>
|
||||
*
|
||||
* @author Steve Ebersole
|
||||
*
|
||||
* @deprecated this is no longer used and will be removed
|
||||
*/
|
||||
@Deprecated(since = "6", forRemoval = true)
|
||||
public interface ParameterBind<T> {
|
||||
/**
|
||||
* 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();
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
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.
|
||||
* <p>
|
||||
* 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<T> extends Parameter<T> {
|
||||
/**
|
||||
* 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<T> getBind();
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
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<T> extends ParameterRegistration<T> {
|
||||
/**
|
||||
* 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);
|
||||
}
|
Loading…
Reference in New Issue