Class ArrayArgumentValidator
- java.lang.Object
-
- org.hibernate.dialect.function.array.ArrayArgumentValidator
-
- All Implemented Interfaces:
ArgumentsValidator
- Direct Known Subclasses:
ArrayAndElementArgumentValidator,ArrayContainsArgumentValidator,ArrayIncludesArgumentValidator
public class ArrayArgumentValidator extends Object implements ArgumentsValidator
AArgumentsValidatorthat validates the array type is compatible with the element type.
-
-
Field Summary
Fields Modifier and Type Field Description static ArgumentsValidatorDEFAULT_INSTANCE
-
Constructor Summary
Constructors Constructor Description ArrayArgumentValidator(int arrayIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BasicType<?>getElementType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)protected BasicType<?>getElementType(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)protected BasicPluralType<?,?>getPluralType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)voidvalidate(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)Perform validation that may be done using theSqmTypedNodetree and assigned Java types.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.sqm.produce.function.ArgumentsValidator
getSignature, validate, validateSqlTypes
-
-
-
-
Field Detail
-
DEFAULT_INSTANCE
public static final ArgumentsValidator DEFAULT_INSTANCE
-
-
Method Detail
-
validate
public void validate(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)
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, TypeConfiguration typeConfiguration)
-
getPluralType
protected BasicPluralType<?,?> getPluralType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)
-
getElementType
protected BasicType<?> getElementType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)
-
-