Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » criterion » [javadoc | source]
org.hibernate.criterion
public interface: Projection [javadoc | source]

All Implemented Interfaces:
    Serializable

All Known Implementing Classes:
    IdentifierProjection, PropertyProjection, SimpleProjection, Property, SQLProjection, AliasedProjection, AggregateProjection, RowCountProjection, AvgProjection, CountProjection, Distinct, ProjectionList

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.
Method from org.hibernate.criterion.Projection Summary:
getAliases,   getColumnAliases,   getColumnAliases,   getTypes,   getTypes,   isGrouped,   toGroupSqlString,   toSqlString
Method from org.hibernate.criterion.Projection Detail:
 public String[] getAliases()
    Get the user-visible aliases for this projection (ie. the ones that will be passed to the ResultTransformer)
 public String[] getColumnAliases(int loc)
    Get the SQL select clause column aliases
 public String[] getColumnAliases(String alias,
    int loc)
    Get the SQL select clause column aliases for a particular user-visible alias
 public Type[] getTypes(Criteria criteria,
    CriteriaQuery criteriaQuery) throws HibernateException
    Return types returned by the rendered SQL fragment
 public Type[] getTypes(String alias,
    Criteria criteria,
    CriteriaQuery criteriaQuery) throws HibernateException
    Return types for a particular user-visible alias
 public boolean isGrouped()
    Does this projection specify grouping attributes?
 public String toGroupSqlString(Criteria criteria,
    CriteriaQuery criteriaQuery) throws HibernateException
    Render the SQL fragment to be used in the group by clause
 public String toSqlString(Criteria criteria,
    int position,
    CriteriaQuery criteriaQuery) throws HibernateException
    Render the SQL fragment