org.springframework.datastore.query
Class Query.ProjectionList

java.lang.Object
  extended by org.springframework.datastore.query.Query.ProjectionList
Enclosing class:
Query

public static class Query.ProjectionList
extends Object

A list of projections


Constructor Summary
Query.ProjectionList()
           
 
Method Summary
 Query.ProjectionList add(Query.Projection p)
           
 Query.ProjectionList avg(String name)
          Computes the average value of a property
 Query.ProjectionList count()
           
 List<Query.Projection> getProjectionList()
           
 Query.ProjectionList id()
           
 boolean isEmpty()
           
 Query.ProjectionList max(String name)
          Computes the max value of a property
 Query.ProjectionList min(String name)
          Computes the min value of a property
 Query.ProjectionList property(String name)
          A projection that obtains the value of a property of an entity
 Query.ProjectionList 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
 

Constructor Detail

Query.ProjectionList

public Query.ProjectionList()
Method Detail

getProjectionList

public List<Query.Projection> getProjectionList()

add

public Query.ProjectionList add(Query.Projection p)

id

public Query.ProjectionList id()

count

public Query.ProjectionList count()

isEmpty

public boolean isEmpty()

property

public Query.ProjectionList property(String name)
A projection that obtains the value of a property of an entity

Parameters:
name - The name of the property
Returns:
The PropertyProjection instance

sum

public Query.ProjectionList sum(String name)
Computes the sum of a property

Parameters:
name - The name of the property
Returns:
The PropertyProjection instance

min

public Query.ProjectionList min(String name)
Computes the min value of a property

Parameters:
name - The name of the property
Returns:
The PropertyProjection instance

max

public Query.ProjectionList max(String name)
Computes the max value of a property

Parameters:
name - The name of the property
Returns:
The PropertyProjection instance

avg

public Query.ProjectionList avg(String name)
Computes the average value of a property

Parameters:
name - The name of the property
Returns:
The PropertyProjection instance