org.hibernate.criterion
Interface Projection
- Serializable
- AggregateProjection, AliasedProjection, AvgProjection, CountProjection, Distinct, IdentifierProjection, ProjectionList, Property, PropertyProjection, RowCountProjection, SimpleProjection, SQLProjection
public interface Projection
extends 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.
getAliases
public String[] getAliases()
Get the user-visible aliases for this projection
(ie. the ones that will be passed to the
ResultTransformer)
getColumnAliases
public String[] getColumnAliases(String alias,
int loc)
Get the SQL select clause column aliases for a particular
user-visible alias
getColumnAliases
public String[] getColumnAliases(int loc)
Get the SQL select clause column aliases
isGrouped
public boolean isGrouped()
Does this projection specify grouping attributes?