Methods Summary |
---|
public static Projection | alias(Projection projection, java.lang.String alias)Assign an alias to a projection, by wrapping it
return new AliasedProjection(projection, alias);
|
public static AggregateProjection | avg(java.lang.String propertyName)A property average value
return new AvgProjection(propertyName);
|
public static CountProjection | count(java.lang.String propertyName)A property value count
return new CountProjection(propertyName);
|
public static CountProjection | countDistinct(java.lang.String propertyName)A distinct property value count
return new CountProjection(propertyName).setDistinct();
|
public static Projection | distinct(Projection proj)Create a distinct projection from a projection
return new Distinct(proj);
|
public static PropertyProjection | groupProperty(java.lang.String propertyName)A grouping property value
return new PropertyProjection(propertyName, true);
|
public static IdentifierProjection | id()A projected identifier value
return new IdentifierProjection();
|
public static AggregateProjection | max(java.lang.String propertyName)A property maximum value
return new AggregateProjection("max", propertyName);
|
public static AggregateProjection | min(java.lang.String propertyName)A property minimum value
return new AggregateProjection("min", propertyName);
|
public static ProjectionList | projectionList()Create a new projection list
return new ProjectionList();
|
public static PropertyProjection | property(java.lang.String propertyName)A projected property value
return new PropertyProjection(propertyName);
|
public static Projection | rowCount()The query row count, ie. count(*)
return new RowCountProjection();
|
public static Projection | sqlGroupProjection(java.lang.String sql, java.lang.String groupBy, java.lang.String[] columnAliases, org.hibernate.type.Type[] types)A grouping SQL projection, specifying both select clause and group by clause fragments
return new SQLProjection(sql, groupBy, columnAliases, types);
|
public static Projection | sqlProjection(java.lang.String sql, java.lang.String[] columnAliases, org.hibernate.type.Type[] types)A SQL projection, a typed select clause fragment
return new SQLProjection(sql, columnAliases, types);
|
public static AggregateProjection | sum(java.lang.String propertyName)A property value sum
return new AggregateProjection("sum", propertyName);
|