|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.datastore.query.Projections
public class Projections
Projections used to customize the results of a query
Field Summary | |
---|---|
static Query.CountProjection |
COUNT_PROJECTION
|
static Query.IdProjection |
ID_PROJECTION
|
Constructor Summary | |
---|---|
Projections()
|
Method Summary | |
---|---|
static Query.AvgProjection |
avg(String name)
Computes the average value of a property |
static Query.CountProjection |
count()
Projection that returns the number of records from the query instead of the results themselves |
static Query.IdProjection |
id()
Projection used to obtain the id of an object |
static Query.MaxProjection |
max(String name)
Computes the max value of a property |
static Query.MinProjection |
min(String name)
Computes the min value of a property |
static Query.PropertyProjection |
property(String name)
A projection that obtains the value of a property of an entity |
static Query.SumProjection |
sum(String name)
Computes the sum of a property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Query.IdProjection ID_PROJECTION
public static final Query.CountProjection COUNT_PROJECTION
Constructor Detail |
---|
public Projections()
Method Detail |
---|
public static Query.IdProjection id()
public static Query.CountProjection count()
public static Query.PropertyProjection property(String name)
name
- The name of the property
public static Query.SumProjection sum(String name)
name
- The name of the property
public static Query.MinProjection min(String name)
name
- The name of the property
public static Query.MaxProjection max(String name)
name
- The name of the property
public static Query.AvgProjection avg(String name)
name
- The name of the property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |