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, toSqlStringas, getAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnCount, getTypes, isGrouped, toGroupSqlStringprotected CountProjection(String prop)
prop - The property nameProjections.count(String), 
Projections.countDistinct(String)protected List buildFunctionParameterList(Criteria criteria, CriteriaQuery criteriaQuery)
buildFunctionParameterList in class AggregateProjectionpublic CountProjection setDistinct()
this, for method chainingpublic String toString()
toString in class AggregateProjectionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.