public class AggregationFunction<T> extends ParameterizedFunctionExpression<T> implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
AggregationFunction.AVG
Implementation of a AVG function providing convenience in construction.
|
static class |
AggregationFunction.COUNT
Implementation of a COUNT function providing convenience in construction.
|
static class |
AggregationFunction.GREATEST<X extends java.lang.Comparable<X>>
Models the MAX function in terms of non-numeric expressions.
|
static class |
AggregationFunction.LEAST<X extends java.lang.Comparable<X>>
Models the MIN function in terms of non-numeric expressions.
|
static class |
AggregationFunction.MAX<N extends java.lang.Number>
Implementation of a MAX function providing convenience in construction.
|
static class |
AggregationFunction.MIN<N extends java.lang.Number>
Implementation of a MIN function providing convenience in construction.
|
static class |
AggregationFunction.SUM<N extends java.lang.Number>
Implementation of a SUM function providing convenience in construction.
|
ParameterContainer.HelperSTANDARD_JPA_FUNCTION_NAMES| Constructor and Description |
|---|
AggregationFunction(CriteriaBuilderImpl criteriaBuilder,
java.lang.Class<T> returnType,
java.lang.String functionName,
javax.persistence.criteria.Expression<?> argument)
Constructs an aggregation function with a single literal argument.
|
AggregationFunction(CriteriaBuilderImpl criteriaBuilder,
java.lang.Class<T> returnType,
java.lang.String functionName,
java.lang.Object argument)
Constructs an aggregation function with a single literal argument.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAggregation()
Is this function a value aggregator (like a COUNT or MAX function e.g.)?
|
protected boolean |
isStandardJpaFunction() |
getArgumentExpressions, properSize, registerParameters, render, renderArgumentsgetFunctionName, renderProjectionas, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, getValueHandlers, isCompoundSelectionforceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctionNameas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetValueHandlersgetValueHandlerpublic AggregationFunction(CriteriaBuilderImpl criteriaBuilder, java.lang.Class<T> returnType, java.lang.String functionName, java.lang.Object argument)
criteriaBuilder - The query builder instance.returnType - The function return type.functionName - The name of the function.argument - The literal argumentpublic AggregationFunction(CriteriaBuilderImpl criteriaBuilder, java.lang.Class<T> returnType, java.lang.String functionName, javax.persistence.criteria.Expression<?> argument)
criteriaBuilder - The query builder instance.returnType - The function return type.functionName - The name of the function.argument - The argumentpublic boolean isAggregation()
FunctionExpressionisAggregation in interface FunctionExpression<T>isAggregation in class BasicFunctionExpression<T>protected boolean isStandardJpaFunction()
isStandardJpaFunction in class ParameterizedFunctionExpression<T>Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.