Package io.micronaut.data.model.query
Interface ProjectionList
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by JPA criteria
Models a list of projections.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionadd
(QueryModel.Projection projection) Deprecated, for removal: This API element is subject to removal in a future version.Adds a projection to the projection list.Deprecated, for removal: This API element is subject to removal in a future version.Computes the average value of a property.count()
Deprecated, for removal: This API element is subject to removal in a future version.Count the number of records returned.countDistinct
(String property) Deprecated, for removal: This API element is subject to removal in a future version.Count the number of records returned.distinct()
Deprecated, for removal: This API element is subject to removal in a future version.Projection to return only distinct records.groupProperty
(String property) Deprecated, for removal: This API element is subject to removal in a future version.Defines a group by projection for datastores that support it.id()
Deprecated, for removal: This API element is subject to removal in a future version.A Projection that obtains the id of an object.Deprecated, for removal: This API element is subject to removal in a future version.Computes the pageSize value of a property.Deprecated, for removal: This API element is subject to removal in a future version.Computes the min value of a property.Deprecated, for removal: This API element is subject to removal in a future version.A projection that obtains the value of a property of an entity.rowCount()
Deprecated, for removal: This API element is subject to removal in a future version.Count the number of records returned.Deprecated, for removal: This API element is subject to removal in a future version.Computes the sum of a property.
-
Method Details
-
id
ProjectionList id()Deprecated, for removal: This API element is subject to removal in a future version.A Projection that obtains the id of an object.- Returns:
- The projection list
-
count
ProjectionList count()Deprecated, for removal: This API element is subject to removal in a future version.Count the number of records returned.- Returns:
- The projection list
-
countDistinct
Deprecated, for removal: This API element is subject to removal in a future version.Count the number of records returned.- Parameters:
property
- The property name to count- Returns:
- The projection list
-
groupProperty
Deprecated, for removal: This API element is subject to removal in a future version.Defines a group by projection for datastores that support it.- Parameters:
property
- The property name- Returns:
- The projection list
-
distinct
ProjectionList distinct()Deprecated, for removal: This API element is subject to removal in a future version.Projection to return only distinct records.- Returns:
- The projection list
-
rowCount
ProjectionList rowCount()Deprecated, for removal: This API element is subject to removal in a future version.Count the number of records returned.- Returns:
- The projection list
-
property
Deprecated, for removal: This API element is subject to removal in a future version.A projection that obtains the value of a property of an entity.- Parameters:
name
- The name of the property- Returns:
- The PropertyProjection instance
-
sum
Deprecated, for removal: This API element is subject to removal in a future version.Computes the sum of a property.- Parameters:
name
- The name of the property- Returns:
- The PropertyProjection instance
-
min
Deprecated, for removal: This API element is subject to removal in a future version.Computes the min value of a property.- Parameters:
name
- The name of the property- Returns:
- The PropertyProjection instance
-
max
Deprecated, for removal: This API element is subject to removal in a future version.Computes the pageSize value of a property.- Parameters:
name
- The name of the property- Returns:
- The PropertyProjection instance
-
avg
Deprecated, for removal: This API element is subject to removal in a future version.Computes the average value of a property.- Parameters:
name
- The name of the property- Returns:
- The PropertyProjection instance
-
add
Deprecated, for removal: This API element is subject to removal in a future version.Adds a projection to the projection list.- Parameters:
projection
- The projection to add- Returns:
- This list
-