org.hibernate.criterion

Class RowCountProjection

Implemented Interfaces:
Projection, Serializable

public class RowCountProjection
extends SimpleProjection

A row count
Author:
Gavin King

Constructor Summary

RowCountProjection()

Method Summary

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

Methods inherited from class org.hibernate.criterion.SimpleProjection

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

Constructor Details

RowCountProjection

protected RowCountProjection()

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 position,
                          CriteriaQuery criteriaQuery)
            throws HibernateException
Specified by:
toSqlString in interface Projection

toString

public String toString()