| Modifier and Type | Field and Description |
|---|---|
| private final ArgumentsValidator | |
| private final FunctionArgumentTypeResolver | |
| private final String | |
| private final FunctionReturnTypeResolver |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | AbstractSqmFunctionDescriptor(String name, ArgumentsValidator argumentsValidator, FunctionArgumentTypeResolver argumentTypeResolver)
|
| public | AbstractSqmFunctionDescriptor(String name, ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, FunctionArgumentTypeResolver argumentTypeResolver)
|
| Modifier and Type | Method and Description |
|---|---|
| public final <T> SelfRenderingSqmFunction | generateAggregateSqmExpression(List<? extends SqmTypedNode<?>> arguments, SqmPredicate filter, ReturnableType<T> impliedResultType, QueryEngine queryEngine)
Overrides default org. generateSqmExpression(List, ReturnableType, QueryEngine),
but also accepts a filter predicate.
|
| public final <T> SelfRenderingSqmFunction | generateOrderedSetAggregateSqmExpression(List<? extends SqmTypedNode<?>> arguments, SqmPredicate filter, SqmOrderByClause withinGroupClause, ReturnableType<T> impliedResultType, QueryEngine queryEngine)
Overrides default org. generateSqmExpression(List, ReturnableType, QueryEngine),
but also accepts a filter predicate and an order by clause.
|
| protected <T> SelfRenderingSqmAggregateFunction | generateSqmAggregateFunctionExpression(List<? extends SqmTypedNode<?>>
the arguments of the function invocation arguments, SqmPredicate filter, ReturnableType<T> the function return type as inferred from its usage impliedResultType, QueryEngine queryEngine)Return an SQM node or subtree representing an invocation of this aggregate function with the given arguments. |
| public final <T> SelfRenderingSqmFunction | generateSqmExpression(List<? extends SqmTypedNode<?>> arguments, ReturnableType<T> impliedResultType, QueryEngine queryEngine)
Implements org. |
| protected abstract <T> SelfRenderingSqmFunction | generateSqmFunctionExpression(List<? extends SqmTypedNode<?>>
the arguments of the function invocation arguments, ReturnableType<T> the function return type as inferred from its usage impliedResultType, QueryEngine queryEngine)Return an SQM node or subtree representing an invocation of this function with the given arguments. |
| protected <T> SelfRenderingSqmAggregateFunction | generateSqmOrderedSetAggregateFunctionExpression(List<? extends SqmTypedNode<?>>
the arguments of the function invocation arguments, SqmPredicate filter, SqmOrderByClause withinGroupClause, ReturnableType<T> the function return type as inferred from its usage impliedResultType, QueryEngine queryEngine)Return an SQM node or subtree representing an invocation of this ordered set-aggregate function with the given arguments. |
| protected <T> SelfRenderingSqmWindowFunction | generateSqmWindowFunctionExpression(List<? extends SqmTypedNode<?>>
the arguments of the function invocation arguments, SqmPredicate filter, Boolean respectNulls, Boolean fromFirst, ReturnableType<T> the function return type as inferred from its usage impliedResultType, QueryEngine queryEngine)Return an SQM node or subtree representing an invocation of this window function with the given arguments. |
| public final <T> SelfRenderingSqmFunction | generateWindowSqmExpression(List<? extends SqmTypedNode<?>> arguments, SqmPredicate filter, Boolean respectNulls, Boolean fromFirst, ReturnableType<T> impliedResultType, QueryEngine queryEngine)
Overrides default org. generateSqmExpression(List, ReturnableType, QueryEngine)
but also accepts a filter predicate.
|
| public String | |
| public ArgumentsValidator | getArgumentsValidator()
Implements org. |
| public FunctionArgumentTypeResolver | |
| public String | |
| public String | |
| public FunctionReturnTypeResolver | |
| public String | getSignature(String
the function name name)Overrides default org. |
| argumentsValidator | back to summary |
|---|---|
| private final ArgumentsValidator argumentsValidator | |
| functionArgumentTypeResolver | back to summary |
|---|---|
| private final FunctionArgumentTypeResolver functionArgumentTypeResolver | |
| name | back to summary |
|---|---|
| private final String name | |
| returnTypeResolver | back to summary |
|---|---|
| private final FunctionReturnTypeResolver returnTypeResolver | |
| AbstractSqmFunctionDescriptor | back to summary |
|---|---|
| public AbstractSqmFunctionDescriptor(String name) | |
| AbstractSqmFunctionDescriptor | back to summary |
|---|---|
| public AbstractSqmFunctionDescriptor(String name, ArgumentsValidator argumentsValidator) | |
| AbstractSqmFunctionDescriptor | back to summary |
|---|---|
| public AbstractSqmFunctionDescriptor(String name, ArgumentsValidator argumentsValidator, FunctionArgumentTypeResolver argumentTypeResolver) | |
| AbstractSqmFunctionDescriptor | back to summary |
|---|---|
| public AbstractSqmFunctionDescriptor(String name, ArgumentsValidator argumentsValidator, FunctionReturnTypeResolver returnTypeResolver, FunctionArgumentTypeResolver argumentTypeResolver) | |
| generateAggregateSqmExpression | back to summary |
|---|---|
| public final <T> SelfRenderingSqmFunction Overrides default org. Doc from org. Like This method is intended for aggregate functions.
| |
| generateOrderedSetAggregateSqmExpression | back to summary |
|---|---|
| public final <T> SelfRenderingSqmFunction Overrides default org. Doc from org. Like This method is intended for ordered set aggregate functions.
| |
| generateSqmAggregateFunctionExpression | back to summary |
|---|---|
| protected <T> SelfRenderingSqmAggregateFunction Return an SQM node or subtree representing an invocation of this aggregate function with the given arguments. This method may be overridden in the case of function descriptors that wish to customize creation of the node.
| |
| generateSqmExpression | back to summary |
|---|---|
| public final <T> SelfRenderingSqmFunction Implements org. Doc from org. Instantiate this template with the given arguments and expected return type. This produces a tree of SQM nodes representing a tree of function invocations. This allows a single HQL function to be defined in terms of other predefined (database independent) HQL functions, simplifying the task of writing HQL functions which are portable between databases.
| |
| generateSqmFunctionExpression | back to summary |
|---|---|
| protected abstract <T> SelfRenderingSqmFunction Return an SQM node or subtree representing an invocation of this function with the given arguments. This method may be overridden in the case of function descriptors that wish to customize creation of the node.
| |
| generateSqmOrderedSetAggregateFunctionExpression | back to summary |
|---|---|
| protected <T> SelfRenderingSqmAggregateFunction Return an SQM node or subtree representing an invocation of this ordered set-aggregate function with the given arguments. This method may be overridden in the case of function descriptors that wish to customize creation of the node.
| |
| generateSqmWindowFunctionExpression | back to summary |
|---|---|
| protected <T> SelfRenderingSqmWindowFunction Return an SQM node or subtree representing an invocation of this window function with the given arguments. This method may be overridden in the case of function descriptors that wish to customize creation of the node.
| |
| generateWindowSqmExpression | back to summary |
|---|---|
| public final <T> SelfRenderingSqmFunction Overrides default org. Doc from org. Like This method is intended for window functions.
| |
| getArgumentListSignature | back to summary |
|---|---|
| public String getArgumentListSignature() | |
| getArgumentsValidator | back to summary |
|---|---|
| public ArgumentsValidator getArgumentsValidator() Implements org. Doc from org. The object responsible for validating arguments of the function.
| |
| getArgumentTypeResolver | back to summary |
|---|---|
| public FunctionArgumentTypeResolver getArgumentTypeResolver() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getReturnSignature | back to summary |
|---|---|
| public String getReturnSignature() | |
| getReturnTypeResolver | back to summary |
|---|---|
| public FunctionReturnTypeResolver getReturnTypeResolver() | |
| getSignature | back to summary |
|---|---|
| public String getSignature(String name) Overrides default org. Doc from org. Used only for pretty-printing the function signature in the log. | |