Interface AbstractFunctionArgumentTypeResolver
- All Superinterfaces:
FunctionArgumentTypeResolver
- All Known Implementing Classes:
ArrayAndElementArgumentTypeResolver,ArrayContainsArgumentTypeResolver,ArrayIncludesArgumentTypeResolver,GenerateSeriesArgumentTypeResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AbstractFunctionArgumentTypeResolver
extends FunctionArgumentTypeResolver
-
Method Summary
Modifier and TypeMethodDescription@Nullable MappingModelExpressible<?> resolveFunctionArgumentType(List<? extends SqmTypedNode<?>> arguments, int argumentIndex, SqmToSqlAstConverter converter) Resolve the argument type for a function given its context-implied return type.default @Nullable MappingModelExpressible<?> resolveFunctionArgumentType(SqmFunction<?> function, int argumentIndex, SqmToSqlAstConverter converter) Resolve the argument type for a function given its context-implied return type.
-
Method Details
-
resolveFunctionArgumentType
default @Nullable MappingModelExpressible<?> resolveFunctionArgumentType(SqmFunction<?> function, int argumentIndex, SqmToSqlAstConverter converter) Description copied from interface:FunctionArgumentTypeResolverResolve the argument type for a function given its context-implied return type.The context-implied type is the type implied by where the function occurs in the query. E.g., for an equality predicate (`something = some_function`) the implied type would be defined by the type of `something`.
- Specified by:
resolveFunctionArgumentTypein interfaceFunctionArgumentTypeResolver- Returns:
- The resolved type.
-
resolveFunctionArgumentType
@Nullable MappingModelExpressible<?> resolveFunctionArgumentType(List<? extends SqmTypedNode<?>> arguments, int argumentIndex, SqmToSqlAstConverter converter) Description copied from interface:FunctionArgumentTypeResolverResolve the argument type for a function given its context-implied return type.The context-implied type is the type implied by where the function occurs in the query. E.g., for an equality predicate (`something = some_function`) the implied type would be defined by the type of `something`.
- Specified by:
resolveFunctionArgumentTypein interfaceFunctionArgumentTypeResolver- Returns:
- The resolved type.
-