FileDocCategorySizeDatePackage
Projection.javaAPI DocHibernate 3.2.52163Sat Feb 12 00:19:50 GMT 2005org.hibernate.criterion

Projection

public interface Projection implements Serializable
An object-oriented representation of a query result set projection in a Criteria query. Built-in projection types are provided by the Projections factory class. This interface might be implemented by application classes that define custom projections.
see
Projections
see
org.hibernate.Criteria
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public java.lang.String[]getAliases()
Get the user-visible aliases for this projection (ie. the ones that will be passed to the ResultTransformer)

public java.lang.String[]getColumnAliases(int loc)
Get the SQL select clause column aliases

public java.lang.String[]getColumnAliases(java.lang.String alias, int loc)
Get the SQL select clause column aliases for a particular user-visible alias

public org.hibernate.type.Type[]getTypes(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)
Return types returned by the rendered SQL fragment

param
criteria
param
criteriaQuery
return
Type[]
throws
HibernateException

public org.hibernate.type.Type[]getTypes(java.lang.String alias, org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)
Return types for a particular user-visible alias

public booleanisGrouped()
Does this projection specify grouping attributes?

public java.lang.StringtoGroupSqlString(org.hibernate.Criteria criteria, CriteriaQuery criteriaQuery)
Render the SQL fragment to be used in the group by clause

param
criteriaQuery
param
columnAlias
return
String
throws
HibernateException

public java.lang.StringtoSqlString(org.hibernate.Criteria criteria, int position, CriteriaQuery criteriaQuery)
Render the SQL fragment

param
criteriaQuery
param
columnAlias
return
String
throws
HibernateException