public class AggregationFunction<T> extends ParameterizedFunctionExpression<T> implements 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 Comparable<X>>
Models  the MAX function in terms of non-numeric expressions. 
 | 
static class  | 
AggregationFunction.LEAST<X extends Comparable<X>>
Models  the MIN function in terms of non-numeric expressions. 
 | 
static class  | 
AggregationFunction.MAX<N extends Number>
Implementation of a MAX function providing convenience in construction. 
 | 
static class  | 
AggregationFunction.MIN<N extends Number>
Implementation of a MIN function providing convenience in construction. 
 | 
static class  | 
AggregationFunction.SUM<N extends Number>
Implementation of a SUM function providing convenience in construction. 
 | 
ParameterContainer.HelperSTANDARD_JPA_FUNCTION_NAMES| Constructor and Description | 
|---|
AggregationFunction(CriteriaBuilderImpl criteriaBuilder,
                   Class<T> returnType,
                   String functionName,
                   Expression<?> argument)
Constructs an aggregation function with a single literal argument. 
 | 
AggregationFunction(CriteriaBuilderImpl criteriaBuilder,
                   Class<T> returnType,
                   String functionName,
                   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, isCompoundSelectiongetAlias, getJavaTypegetValueHandlersgetValueHandlerpublic AggregationFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType, String functionName, 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, Class<T> returnType, String functionName, 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-2015 Red Hat, Inc. All Rights Reserved.