Interface ArgumentsValidator
- All Known Implementing Classes:
ArgumentTypesValidator,ArrayAndElementArgumentValidator,ArrayArgumentValidator,ArrayContainsArgumentValidator,ArrayIncludesArgumentValidator,ArraysOfSameTypeArgumentValidator,AvgFunction.Validator,DynamicDispatchFunction,GenerateSeriesArgumentValidator,JsonObjectArgumentsValidator,TruncFunction.TruncArgumentsValidator
public interface ArgumentsValidator
Validates the arguments provided to an HQL function invocation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringPretty-print the signature of the argument list.default voidvalidate(List<? extends SqmTypedNode<?>> arguments, String functionName, BindingContext bindingContext) Perform validation that may be done using theSqmTypedNodetree and assigned Java types.default voidvalidate(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.default voidvalidateSqlTypes(List<? extends SqlAstNode> arguments, String functionName) Perform validation that requires theSqlAstNodetree and assigned JDBC types.
-
Method Details
-
validate
default void validate(List<? extends SqmTypedNode<?>> arguments, String functionName, BindingContext bindingContext) Perform validation that may be done using theSqmTypedNodetree and assigned Java types.- Since:
- 7.0
-
validate
@Deprecated(since="7.0", forRemoval=true) default void validate(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.Implementvalidate(List, String, BindingContext)insteadPerform validation that may be done using theSqmTypedNodetree and assigned Java types. -
getSignature
Pretty-print the signature of the argument list. -
validateSqlTypes
Perform validation that requires theSqlAstNodetree and assigned JDBC types.
-
validate(List, String, BindingContext)instead