Package io.micronaut.data.model.query
Interface ProjectionList
public interface ProjectionList
Models a list of projections.
- Since:
- 1.0
- Author:
- Graeme Rocher
- 
Method SummaryModifier and TypeMethodDescriptionadd(QueryModel.Projection projection) Adds a projection to the projection list.Computes the average value of a property.count()Count the number of records returned.countDistinct(String property) Count the number of records returned.distinct()Projection to return only distinct records.groupProperty(String property) Defines a group by projection for datastores that support it.id()A Projection that obtains the id of an object.Computes the pageSize value of a property.Computes the min value of a property.A projection that obtains the value of a property of an entity.rowCount()Count the number of records returned.Computes the sum of a property.
- 
Method Details- 
idProjectionList id()A Projection that obtains the id of an object.- Returns:
- The projection list
 
- 
countProjectionList count()Count the number of records returned.- Returns:
- The projection list
 
- 
countDistinctCount the number of records returned.- Parameters:
- property- The property name to count
- Returns:
- The projection list
 
- 
groupPropertyDefines a group by projection for datastores that support it.- Parameters:
- property- The property name
- Returns:
- The projection list
 
- 
distinctProjectionList distinct()Projection to return only distinct records.- Returns:
- The projection list
 
- 
rowCountProjectionList rowCount()Count the number of records returned.- Returns:
- The projection list
 
- 
propertyA projection that obtains the value of a property of an entity.- Parameters:
- name- The name of the property
- Returns:
- The PropertyProjection instance
 
- 
sumComputes the sum of a property.- Parameters:
- name- The name of the property
- Returns:
- The PropertyProjection instance
 
- 
minComputes the min value of a property.- Parameters:
- name- The name of the property
- Returns:
- The PropertyProjection instance
 
- 
maxComputes the pageSize value of a property.- Parameters:
- name- The name of the property
- Returns:
- The PropertyProjection instance
 
- 
avgComputes the average value of a property.- Parameters:
- name- The name of the property
- Returns:
- The PropertyProjection instance
 
- 
addAdds a projection to the projection list.- Parameters:
- projection- The projection to add
- Returns:
- This list
 
 
-