Class ArrayArgumentValidator
java.lang.Object
org.hibernate.dialect.function.array.ArrayArgumentValidator
- All Implemented Interfaces:
ArgumentsValidator
- Direct Known Subclasses:
ArrayAndElementArgumentValidator, ArrayContainsArgumentValidator, ArrayIncludesArgumentValidator
A
ArgumentsValidator that validates the array type is compatible with the element type.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicType<?> getElementType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName) protected BasicType<?> getElementType(List<? extends SqmTypedNode<?>> arguments, String functionName) protected BasicPluralType<?, ?> getPluralType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName) voidvalidate(List<? extends SqmTypedNode<?>> arguments, String functionName, BindingContext bindingContext) Perform validation that may be done using theSqmTypedNodetree and assigned Java types.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentsValidator
getSignature, validate, validateSqlTypes
-
Field Details
-
DEFAULT_INSTANCE
-
-
Constructor Details
-
ArrayArgumentValidator
public ArrayArgumentValidator(int arrayIndex)
-
-
Method Details
-
validate
public void validate(List<? extends SqmTypedNode<?>> arguments, String functionName, BindingContext bindingContext) Description copied from interface:ArgumentsValidatorPerform validation that may be done using theSqmTypedNodetree and assigned Java types.- Specified by:
validatein interfaceArgumentsValidator
-
getElementType
protected BasicType<?> getElementType(List<? extends SqmTypedNode<?>> arguments, String functionName) -
getPluralType
protected BasicPluralType<?,?> getPluralType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName) -
getElementType
protected BasicType<?> getElementType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName)
-