FileDocCategorySizeDatePackage
RowCountProjection.javaAPI DocHibernate 3.2.5830Mon May 08 15:59:20 BST 2006org.hibernate.criterion

RowCountProjection

public class RowCountProjection extends SimpleProjection
A row count
author
Gavin King

Fields Summary
Constructors Summary
protected RowCountProjection()

Methods Summary
public org.hibernate.type.Type[]getTypes(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)

		return new Type[] { Hibernate.INTEGER };
	
public java.lang.StringtoSqlString(org.hibernate.Criteria criteria, int position, CriteriaQuery criteriaQuery)

		return new StringBuffer()
			.append("count(*) as y")
			.append(position)
			.append('_")
			.toString();
	
public java.lang.StringtoString()

		return "count(*)";