Class ArrayAndElementArgumentValidator
- java.lang.Object
-
- org.hibernate.dialect.function.array.ArrayArgumentValidator
-
- org.hibernate.dialect.function.array.ArrayAndElementArgumentValidator
-
- All Implemented Interfaces:
ArgumentsValidator
public class ArrayAndElementArgumentValidator extends ArrayArgumentValidator
AArgumentsValidator
that validates the array type is compatible with the element type.
-
-
Field Summary
Fields Modifier and Type Field Description static ArgumentsValidator
DEFAULT_INSTANCE
-
Constructor Summary
Constructors Constructor Description ArrayAndElementArgumentValidator(int arrayIndex, int... elementIndexes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)
Perform validation that may be done using theSqmTypedNode
tree and assigned Java types.-
Methods inherited from class org.hibernate.dialect.function.array.ArrayArgumentValidator
getElementType, getElementType, getPluralType
-
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:ArgumentsValidator
Perform validation that may be done using theSqmTypedNode
tree and assigned Java types.- Specified by:
validate
in interfaceArgumentsValidator
- Overrides:
validate
in classArrayArgumentValidator
-
-