org.hibernate.ejb.criteria.expression.function
public static class AggregationFunction.COUNT extends AggregationFunction<java.lang.Long>
Long
because thats what JPA states
that the return from COUNT should be.AggregationFunction.AVG, AggregationFunction.COUNT, AggregationFunction.GREATEST<X extends java.lang.Comparable<X>>, AggregationFunction.LEAST<X extends java.lang.Comparable<X>>, AggregationFunction.MAX<N extends java.lang.Number>, AggregationFunction.MIN<N extends java.lang.Number>, AggregationFunction.SUM<N extends java.lang.Number>
ParameterContainer.Helper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
AggregationFunction.COUNT(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<?> expression,
boolean distinct) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDistinct() |
protected void |
renderArguments(java.lang.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
getValueHandlers
getValueHandler
public static final java.lang.String NAME
public AggregationFunction.COUNT(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<?> expression, boolean distinct)
protected void renderArguments(java.lang.StringBuilder buffer, CriteriaQueryCompiler.RenderingContext renderingContext)
renderArguments
in class ParameterizedFunctionExpression<java.lang.Long>
public boolean isDistinct()
Copyright © 2014. All Rights Reserved.