org.hibernate.criterion
Class CountProjection

java.lang.Object
  extended by org.hibernate.criterion.SimpleProjection
      extended by org.hibernate.criterion.AggregateProjection
          extended by org.hibernate.criterion.CountProjection
All Implemented Interfaces:
Serializable, EnhancedProjection, Projection

public class CountProjection
extends AggregateProjection

A count

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.hibernate.criterion.AggregateProjection
propertyName
 
Constructor Summary
protected CountProjection(String prop)
           
 
Method Summary
protected  List buildFunctionParameterList(Criteria criteria, CriteriaQuery criteriaQuery)
           
 CountProjection setDistinct()
           
 String toString()
           
 
Methods inherited from class org.hibernate.criterion.AggregateProjection
buildFunctionParameterList, getFunction, getFunction, getFunctionName, getPropertyName, getTypes, toSqlString
 
Methods inherited from class org.hibernate.criterion.SimpleProjection
as, getAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnCount, getTypes, isGrouped, toGroupSqlString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountProjection

protected CountProjection(String prop)
Method Detail

toString

public String toString()
Overrides:
toString in class AggregateProjection

buildFunctionParameterList

protected List buildFunctionParameterList(Criteria criteria,
                                          CriteriaQuery criteriaQuery)
Overrides:
buildFunctionParameterList in class AggregateProjection

setDistinct

public CountProjection setDistinct()


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.