public static class AggregationFunction.COUNT extends AggregationFunction<Long>
Long
because thats what JPA states
that the return from COUNT should be.AggregationFunction.AVG, AggregationFunction.COUNT, AggregationFunction.GREATEST<X extends Comparable<X>>, AggregationFunction.LEAST<X extends Comparable<X>>, AggregationFunction.MAX<N extends Number>, AggregationFunction.MIN<N extends Number>, AggregationFunction.SUM<N extends Number>
ParameterContainer.Helper
Constructor and Description |
---|
AggregationFunction.COUNT(CriteriaBuilderImpl criteriaBuilder,
Expression<?> expression,
boolean distinct) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDistinct() |
protected void |
renderArguments(StringBuilder buffer,
CriteriaQueryCompiler.RenderingContext renderingContext) |
isAggregation
getArgumentExpressions, properSize, registerParameters, render, wrapAsLiterals
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 static final String NAME
public AggregationFunction.COUNT(CriteriaBuilderImpl criteriaBuilder, Expression<?> expression, boolean distinct)
protected void renderArguments(StringBuilder buffer, CriteriaQueryCompiler.RenderingContext renderingContext)
renderArguments
in class ParameterizedFunctionExpression<Long>
public boolean isDistinct()
Copyright © 2018 JBoss by Red Hat. All rights reserved.