Top Fields Constructors Methods
org.hibernate.query.spi

public Class QueryParameterBindingValidator

extends Object
Class Inheritance
Imports
java.util.Calendar, .Collection, .Date, javax.persistence.TemporalType, org.hibernate.type.Type

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(Class<T> expectedType, Object value, TemporalType temporalType)

public <P> void
validate(Type paramType, Object bind)

public <P> void
validate(Type paramType, Object bind, TemporalType temporalType)

private void
validateArrayValuedParameterBinding(Class<T> parameterType, Object value, TemporalType temporalType)

private void
validateCollectionValuedParameterBinding(Class<T> parameterType, Collection<E> 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(Class<T> expectedType, Object value, TemporalType temporalType)
validateback to summary
public <P> void validate(Type paramType, Object bind)
validateback to summary
public <P> void validate(Type paramType, Object bind, TemporalType temporalType)
validateArrayValuedParameterBindingback to summary
private void validateArrayValuedParameterBinding(Class<T> parameterType, Object value, TemporalType temporalType)
validateCollectionValuedParameterBindingback to summary
private void validateCollectionValuedParameterBinding(Class<T> parameterType, Collection<E> value, TemporalType temporalType)