org.hibernate.criterion

Class AggregateProjection

Implemented Interfaces:
Projection, Serializable
Known Direct Subclasses:
AvgProjection, CountProjection

public class AggregateProjection
extends SimpleProjection

An aggregation
Author:
max

Field Summary

protected String
propertyName

Constructor Summary

AggregateProjection(String aggregate, String propertyName)

Method Summary

Type[]
getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
String
toSqlString(Criteria criteria, int loc, CriteriaQuery criteriaQuery)
String
toString()

Methods inherited from class org.hibernate.criterion.SimpleProjection

as, getAliases, getColumnAliases, getColumnAliases, getTypes, isGrouped, toGroupSqlString

Field Details

propertyName

protected final String propertyName

Constructor Details

AggregateProjection

protected AggregateProjection(String aggregate,
                              String propertyName)

Method Details

getTypes

public Type[] getTypes(Criteria criteria,
                       CriteriaQuery criteriaQuery)
            throws HibernateException
Specified by:
getTypes in interface Projection

toSqlString

public String toSqlString(Criteria criteria,
                          int loc,
                          CriteriaQuery criteriaQuery)
            throws HibernateException
Specified by:
toSqlString in interface Projection

toString

public String toString()