public final class Projections extends Object
Criteria
,
factory methods for Criterion instances
Modifier and Type | Method and Description |
---|---|
static Projection |
alias(Projection projection,
String alias)
Assign an alias to a projection, by wrapping it
|
static AggregateProjection |
avg(String propertyName)
A property average value
|
static CountProjection |
count(String propertyName)
A property value count
|
static CountProjection |
countDistinct(String propertyName)
A distinct property value count
|
static Projection |
distinct(Projection proj)
Create a distinct projection from a projection
|
static PropertyProjection |
groupProperty(String propertyName)
A grouping property value
|
static IdentifierProjection |
id()
A projected identifier value
|
static AggregateProjection |
max(String propertyName)
A property maximum value
|
static AggregateProjection |
min(String propertyName)
A property minimum value
|
static ProjectionList |
projectionList()
Create a new projection list
|
static PropertyProjection |
property(String propertyName)
A projected property value
|
static Projection |
rowCount()
The query row count, ie.
|
static Projection |
sqlGroupProjection(String sql,
String groupBy,
String[] columnAliases,
Type[] types)
A grouping SQL projection, specifying both select clause and group by clause fragments
|
static Projection |
sqlProjection(String sql,
String[] columnAliases,
Type[] types)
A SQL projection, a typed select clause fragment
|
static AggregateProjection |
sum(String propertyName)
A property value sum
|
public static Projection distinct(Projection proj)
public static ProjectionList projectionList()
public static Projection rowCount()
public static CountProjection count(String propertyName)
public static CountProjection countDistinct(String propertyName)
public static AggregateProjection max(String propertyName)
public static AggregateProjection min(String propertyName)
public static AggregateProjection avg(String propertyName)
public static AggregateProjection sum(String propertyName)
public static Projection sqlProjection(String sql, String[] columnAliases, Type[] types)
public static Projection sqlGroupProjection(String sql, String groupBy, String[] columnAliases, Type[] types)
public static PropertyProjection groupProperty(String propertyName)
public static PropertyProjection property(String propertyName)
public static IdentifierProjection id()
public static Projection alias(Projection projection, String alias)
Copyright © 2018 JBoss by Red Hat. All rights reserved.