org.hibernate.criterion

Class AvgProjection

Implemented Interfaces:
Projection, Serializable

public class AvgProjection
extends AggregateProjection

An avg() projection
Author:
Gavin King

Field Summary

Fields inherited from class org.hibernate.criterion.AggregateProjection

propertyName

Constructor Summary

AvgProjection(String propertyName)

Method Summary

Type[]
getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
Return types returned by the rendered SQL fragment

Methods inherited from class org.hibernate.criterion.AggregateProjection

getTypes, toSqlString, toString

Methods inherited from class org.hibernate.criterion.SimpleProjection

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

Constructor Details

AvgProjection

public AvgProjection(String propertyName)

Method Details

getTypes

public Type[] getTypes(Criteria criteria,
                       CriteriaQuery criteriaQuery)
            throws HibernateException
Return types returned by the rendered SQL fragment
Specified by:
getTypes in interface Projection
Overrides:
getTypes in interface AggregateProjection
Parameters:
criteria -
criteriaQuery -
Returns:
Type[]