org.hibernate.ejb.criteria.expression.function
Class AggregationFunction.COUNT
java.lang.Object
org.hibernate.ejb.criteria.AbstractNode
org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
org.hibernate.ejb.criteria.expression.SelectionImpl<T>
org.hibernate.ejb.criteria.expression.ExpressionImpl<X>
org.hibernate.ejb.criteria.expression.function.BasicFunctionExpression<X>
org.hibernate.ejb.criteria.expression.function.ParameterizedFunctionExpression<T>
org.hibernate.ejb.criteria.expression.function.AggregationFunction<java.lang.Long>
org.hibernate.ejb.criteria.expression.function.AggregationFunction.COUNT
- All Implemented Interfaces:
- java.io.Serializable, javax.persistence.criteria.Expression<java.lang.Long>, javax.persistence.criteria.Selection<java.lang.Long>, javax.persistence.TupleElement<java.lang.Long>, FunctionExpression<java.lang.Long>, ExpressionImplementor<java.lang.Long>, ParameterContainer, Renderable, SelectionImplementor<java.lang.Long>, TupleElementImplementor<java.lang.Long>
- Enclosing class:
- AggregationFunction<T>
public static class AggregationFunction.COUNT
- extends AggregationFunction<java.lang.Long>
Implementation of a COUNT function providing convenience in construction.
Parameterized as Long
because thats what JPA states
that the return from COUNT should be.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
NAME
|
Methods inherited from class org.hibernate.ejb.criteria.expression.ExpressionImpl |
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.persistence.criteria.Expression |
as, in, in, in, in, isNotNull, isNull |
Methods inherited from interface javax.persistence.criteria.Selection |
alias, getCompoundSelectionItems, isCompoundSelection |
Methods inherited from interface javax.persistence.TupleElement |
getAlias, getJavaType |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
AggregationFunction.COUNT
public AggregationFunction.COUNT(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<?> expression,
boolean distinct)
renderArguments
protected void renderArguments(java.lang.StringBuilder buffer,
CriteriaQueryCompiler.RenderingContext renderingContext)
- Overrides:
renderArguments
in class ParameterizedFunctionExpression<java.lang.Long>
isDistinct
public boolean isDistinct()
Copyright © 2010. All Rights Reserved.