public class CountProjection extends AggregateProjection
propertyName
Modifier | Constructor and Description |
---|---|
protected |
CountProjection(String prop)
Constructs the count projection.
|
Modifier and Type | Method and Description |
---|---|
protected List |
buildFunctionParameterList(Criteria criteria,
CriteriaQuery criteriaQuery) |
CountProjection |
setDistinct()
Sets the count as being distinct
|
String |
toString() |
buildFunctionParameterList, getFunction, getFunction, getFunctionName, getPropertyName, getTypes, toSqlString
as, getAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnCount, getTypes, isGrouped, toGroupSqlString
protected CountProjection(String prop)
prop
- The property nameProjections.count(String)
,
Projections.countDistinct(String)
protected List buildFunctionParameterList(Criteria criteria, CriteriaQuery criteriaQuery)
buildFunctionParameterList
in class AggregateProjection
public CountProjection setDistinct()
this
, for method chainingpublic String toString()
toString
in class AggregateProjection
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.