Class ArrayViaElementArgumentReturnTypeResolver
- java.lang.Object
-
- org.hibernate.dialect.function.array.ArrayViaElementArgumentReturnTypeResolver
-
- All Implemented Interfaces:
FunctionReturnTypeResolver
public class ArrayViaElementArgumentReturnTypeResolver extends Object implements FunctionReturnTypeResolver
AFunctionReturnTypeResolver
that resolves an array type based on the arguments, which are supposed to be of the element type. The inferred type and implied type have precedence though.
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionReturnTypeResolver
DEFAULT_INSTANCE
static FunctionReturnTypeResolver
DEFAULT_LIST_INSTANCE
static FunctionReturnTypeResolver
VARARGS_INSTANCE
static FunctionReturnTypeResolver
VARARGS_LIST_INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicValuedMapping
resolveFunctionReturnType(Supplier<BasicValuedMapping> impliedTypeAccess, List<? extends SqlAstNode> arguments)
Resolve the return type for a function given its context-implied type and the arguments to this call.ReturnableType<?>
resolveFunctionReturnType(ReturnableType<?> impliedType, @Nullable SqmToSqlAstConverter converter, List<? extends SqmTypedNode<?>> arguments, TypeConfiguration typeConfiguration)
Resolve the return type for a function given its context-implied type and the arguments to this call.-
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.FunctionReturnTypeResolver
getReturnType, resolveFunctionReturnType, resolveFunctionReturnType
-
-
-
-
Field Detail
-
DEFAULT_INSTANCE
public static final FunctionReturnTypeResolver DEFAULT_INSTANCE
-
DEFAULT_LIST_INSTANCE
public static final FunctionReturnTypeResolver DEFAULT_LIST_INSTANCE
-
VARARGS_INSTANCE
public static final FunctionReturnTypeResolver VARARGS_INSTANCE
-
VARARGS_LIST_INSTANCE
public static final FunctionReturnTypeResolver VARARGS_LIST_INSTANCE
-
-
Method Detail
-
resolveFunctionReturnType
public ReturnableType<?> resolveFunctionReturnType(ReturnableType<?> impliedType, @Nullable SqmToSqlAstConverter converter, List<? extends SqmTypedNode<?>> arguments, TypeConfiguration typeConfiguration)
Description copied from interface:FunctionReturnTypeResolver
Resolve the return type for a function given its context-implied type and the arguments to this call.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 of the return from `some_function` would be defined by the type of `some_function`.
- Specified by:
resolveFunctionReturnType
in interfaceFunctionReturnTypeResolver
- Returns:
- The resolved type.
-
resolveFunctionReturnType
public BasicValuedMapping resolveFunctionReturnType(Supplier<BasicValuedMapping> impliedTypeAccess, List<? extends SqlAstNode> arguments)
Description copied from interface:FunctionReturnTypeResolver
Resolve the return type for a function given its context-implied type and the arguments to this call.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 of the return from `some_function` would be defined by the type of `some_function`.
- Specified by:
resolveFunctionReturnType
in interfaceFunctionReturnTypeResolver
- Returns:
- The resolved type.
-
-