public class Projections
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static QueryModel.CountProjection | 
COUNT_PROJECTION  | 
static QueryModel.IdProjection | 
ID_PROJECTION  | 
| Constructor and Description | 
|---|
Projections()  | 
| Modifier and Type | Method and Description | 
|---|---|
static QueryModel.AvgProjection | 
avg(java.lang.String name)
Computes the average value of a property. 
 | 
static QueryModel.CountProjection | 
count()
Projection that returns the number of records from the query. 
 | 
static QueryModel.CountDistinctProjection | 
countDistinct(java.lang.String property)
Projection that signifies to return only distinct results. 
 | 
static QueryModel.DistinctProjection | 
distinct()
Projection that signifies to return only distinct results. 
 | 
static QueryModel.DistinctPropertyProjection | 
distinct(java.lang.String property)
Projection that signifies to return only distinct results. 
 | 
static QueryModel.GroupPropertyProjection | 
groupProperty(java.lang.String property)
Defines a group by projection for datastores that support it. 
 | 
static QueryModel.IdProjection | 
id()
Projection used to obtain the id of an object. 
 | 
static QueryModel.MaxProjection | 
max(java.lang.String name)
Computes the pageSize value of a property. 
 | 
static QueryModel.MinProjection | 
min(java.lang.String name)
Computes the min value of a property. 
 | 
static QueryModel.PropertyProjection | 
property(java.lang.String name)
A projection that obtains the value of a property of an entity. 
 | 
static QueryModel.SumProjection | 
sum(java.lang.String name)
Computes the sum of a property. 
 | 
public static final QueryModel.IdProjection ID_PROJECTION
public static final QueryModel.CountProjection COUNT_PROJECTION
public static QueryModel.IdProjection id()
public static QueryModel.CountProjection count()
public static QueryModel.PropertyProjection property(java.lang.String name)
name - The name of the propertypublic static QueryModel.SumProjection sum(java.lang.String name)
name - The name of the propertypublic static QueryModel.MinProjection min(java.lang.String name)
name - The name of the propertypublic static QueryModel.MaxProjection max(java.lang.String name)
name - The name of the propertypublic static QueryModel.AvgProjection avg(java.lang.String name)
name - The name of the propertypublic static QueryModel.DistinctProjection distinct()
public static QueryModel.DistinctPropertyProjection distinct(java.lang.String property)
property - The name of the propertypublic static QueryModel.CountDistinctProjection countDistinct(java.lang.String property)
property - The name of the propertypublic static QueryModel.GroupPropertyProjection groupProperty(java.lang.String property)
property - The property name