Class Projections
java.lang.Object
io.micronaut.data.model.query.factory.Projections
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by JPA criteria
Projections used to customize the results of a query.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QueryModel.CountProjectionDeprecated, for removal: This API element is subject to removal in a future version.static final QueryModel.IdProjectionDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryModel.AvgProjectionDeprecated, for removal: This API element is subject to removal in a future version.Computes the average value of a property.static QueryModel.CountProjectioncount()Deprecated, for removal: This API element is subject to removal in a future version.Projection that returns the number of records from the query.countDistinct(String property) Deprecated, for removal: This API element is subject to removal in a future version.Projection that signifies to return only distinct results.Deprecated, for removal: This API element is subject to removal in a future version.Projection that signifies to return only distinct results against an entity, meaning its identity property/properties.distinct()Deprecated, for removal: This API element is subject to removal in a future version.Projection that signifies to return only distinct results.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.static QueryModel.IdProjectionid()Deprecated, for removal: This API element is subject to removal in a future version.Projection used to obtain the id of an object.static QueryModel.LiteralProjectionDeprecated, for removal: This API element is subject to removal in a future version.A projection that projects a simple literal.static QueryModel.MaxProjectionDeprecated, for removal: This API element is subject to removal in a future version.Computes the pageSize value of a property.static QueryModel.MinProjectionDeprecated, 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.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.Deprecated, for removal: This API element is subject to removal in a future version.Defines a projection of the root entity.static QueryModel.SumProjectionDeprecated, for removal: This API element is subject to removal in a future version.Computes the sum of a property.
-
Field Details
-
ID_PROJECTION
Deprecated, for removal: This API element is subject to removal in a future version. -
COUNT_PROJECTION
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
Projections
public Projections()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
id
Deprecated, for removal: This API element is subject to removal in a future version.Projection used to obtain the id of an object.- Returns:
- The IdProjection instance
-
count
Deprecated, for removal: This API element is subject to removal in a future version.Projection that returns the number of records from the query. instead of the results themselves- Returns:
- The CountProjection instance
-
literal
Deprecated, for removal: This API element is subject to removal in a future version.A projection that projects a simple literal.- Parameters:
value- The literal value- Returns:
- The LiteralProjection instance
-
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
-
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 propertycompound- Is compound- Returns:
- The PropertyProjection instance
- Since:
- 4.2.0
-
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
-
distinct
Deprecated, for removal: This API element is subject to removal in a future version.Projection that signifies to return only distinct results.- Returns:
- Distinct projection
-
countDistinct
Deprecated, for removal: This API element is subject to removal in a future version.Projection that signifies to return only distinct results.- Parameters:
property- The name of the property- Returns:
- Distinct projection
-
countDistinctRoot
Deprecated, for removal: This API element is subject to removal in a future version.Projection that signifies to return only distinct results against an entity, meaning its identity property/properties.- Returns:
- count distinct projection for the entity
-
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
-
rootEntity
Deprecated, for removal: This API element is subject to removal in a future version.Defines a projection of the root entity.- Returns:
- The projection
-