Top Fields Constructors Methods
org.hibernate.query.spi

public Class QueryParameterBindingValidator

extends Object
Class Inheritance
Imports
java.util.Calendar, .Collection, .Date, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.query.BindableType, .QueryArgumentException, org.hibernate.query.sqm.SqmExpressible, org.hibernate.type.descriptor.java.JavaType, jakarta.persistence.TemporalType

Author
Andrea Boriero

Field Summary

Modifier and TypeField and Description
public static final QueryParameterBindingValidator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private String
extractName(TemporalType temporalType)

private static boolean
isValidBindValue(JavaType<?> expectedJavaType, Class<?> expectedType, Object value, TemporalType temporalType)

private static boolean
isValidBindValue(Class<?> expectedType, Object value, TemporalType temporalType)

public void
validate(BindableType<?> paramType, Object bind, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public void
validate(BindableType<?> paramType, Object bind, TemporalType temporalPrecision, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private void
validateArrayValuedParameterBinding(Class<?> parameterType, Object value, TemporalType temporalType)

private void
validateCollectionValuedParameterBinding(Class<?> parameterType, Collection<?> value, TemporalType temporalType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final QueryParameterBindingValidator INSTANCE

Constructor Detail

QueryParameterBindingValidatorback to summary
private QueryParameterBindingValidator()

Method Detail

extractNameback to summary
private String extractName(TemporalType temporalType)
isValidBindValueback to summary
private static boolean isValidBindValue(JavaType<?> expectedJavaType, Class<?> expectedType, Object value, TemporalType temporalType)
isValidBindValueback to summary
private static boolean isValidBindValue(Class<?> expectedType, Object value, TemporalType temporalType)
validateback to summary
public void validate(BindableType<?> paramType, Object bind, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

validateback to summary
public void validate(BindableType<?> paramType, Object bind, TemporalType temporalPrecision, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

validateArrayValuedParameterBindingback to summary
private void validateArrayValuedParameterBinding(Class<?> parameterType, Object value, TemporalType temporalType)
validateCollectionValuedParameterBindingback to summary
private void validateCollectionValuedParameterBinding(Class<?> parameterType, Collection<?> value, TemporalType temporalType)