org.hibernate.criterion
Class SQLProjection
java.lang.Object
org.hibernate.criterion.SQLProjection
- Projection, Serializable
public class SQLProjection
extends java.lang.Object
A SQL fragment. The string {alias} will be replaced by the
alias of the root entity.
SQLProjection
protected SQLProjection(String sql,
String groupBy,
String[] columnAliases,
Type[] types)
SQLProjection
protected SQLProjection(String sql,
String[] columnAliases,
Type[] types)
getAliases
public String[] getAliases()
Get the user-visible aliases for this projection
(ie. the ones that will be passed to the
ResultTransformer)
- getAliases in interface Projection
getColumnAliases
public String[] getColumnAliases(String alias,
int loc)
Get the SQL select clause column aliases for a particular
user-visible alias
- getColumnAliases in interface Projection
getColumnAliases
public String[] getColumnAliases(int loc)
Get the SQL select clause column aliases
- getColumnAliases in interface Projection
isGrouped
public boolean isGrouped()
Does this projection specify grouping attributes?
- isGrouped in interface Projection
toString
public String toString()