Class ArrayContainsArgumentTypeResolver
- java.lang.Object
-
- org.hibernate.dialect.function.array.ArrayContainsArgumentTypeResolver
-
- All Implemented Interfaces:
FunctionArgumentTypeResolver
public class ArrayContainsArgumentTypeResolver extends Object implements FunctionArgumentTypeResolver
AFunctionArgumentTypeResolver
that resolves the argument types for thearray_contains
function.
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionArgumentTypeResolver
INSTANCE
-
Constructor Summary
Constructors Constructor Description ArrayContainsArgumentTypeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingModelExpressible<?>
resolveFunctionArgumentType(SqmFunction<?> function, int argumentIndex, SqmToSqlAstConverter converter)
Resolve the argument type for a function given its context-implied return type.
-
-
-
Field Detail
-
INSTANCE
public static final FunctionArgumentTypeResolver INSTANCE
-
-
Method Detail
-
resolveFunctionArgumentType
public MappingModelExpressible<?> resolveFunctionArgumentType(SqmFunction<?> function, int argumentIndex, SqmToSqlAstConverter converter)
Description copied from interface:FunctionArgumentTypeResolver
Resolve 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:
resolveFunctionArgumentType
in interfaceFunctionArgumentTypeResolver
- Returns:
- The resolved type.
-
-