Package org.hibernate.jpa.spi
Interface NullTypeBindableParameterRegistration<T>
-
- All Superinterfaces:
Parameter<T>
,ParameterRegistration<T>
public interface NullTypeBindableParameterRegistration<T> extends ParameterRegistration<T>
AParameterRegistration
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bindNullValue(java.lang.Class<?> nullParameterType)
If bindable, bind a null value using the provided parameter type.-
Methods inherited from interface javax.persistence.Parameter
getName, getParameterType, getPosition
-
Methods inherited from interface org.hibernate.jpa.spi.ParameterRegistration
bindValue, bindValue, getBind, getMode, getQuery, isBindable, isJpaPositionalParameter
-
-
-
-
Method Detail
-
bindNullValue
void bindNullValue(java.lang.Class<?> nullParameterType)
If bindable, bind a null value using the provided parameter type. This method is only valid ifParameter.getParameterType()
returnsnull
.- Parameters:
nullParameterType
- the Java type to be used for binding the null value; must be non-null.- Throws:
java.lang.IllegalArgumentException
-parameterType
is null or ifParameter.getParameterType()
does not return null.
-
-