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.Helper
STANDARD_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, renderArguments
getFunctionName, renderProjection
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctionName
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
getValueHandlers
getValueHandler
public 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()
FunctionExpression
isAggregation
in interface FunctionExpression<T>
isAggregation
in class BasicFunctionExpression<T>
protected boolean isStandardJpaFunction()
isStandardJpaFunction
in class ParameterizedFunctionExpression<T>
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.