Package io.micronaut.data.model.query
Class QueryModel.PropertyProjection
java.lang.Object
io.micronaut.data.model.query.QueryModel.Projection
io.micronaut.data.model.query.QueryModel.PropertyProjection
- Direct Known Subclasses:
- QueryModel.AvgProjection,- QueryModel.CountDistinctProjection,- QueryModel.GroupPropertyProjection,- QueryModel.MaxProjection,- QueryModel.MinProjection,- QueryModel.SumProjection
- Enclosing interface:
- QueryModel
A projection that obtains the value of a property of an entity.
- 
Constructor SummaryConstructorsConstructorDescriptionPropertyProjection(String propertyName) Default constructor.PropertyProjection(String propertyName, boolean compound) Default constructor.
- 
Method Summary
- 
Constructor Details- 
PropertyProjectionDefault constructor.- Parameters:
- propertyName- The property name
 
- 
PropertyProjectionDefault constructor.- Parameters:
- propertyName- The property name
- compound- Is compound property
 
 
- 
- 
Method Details- 
getPropertyName- Returns:
- The property name
 
- 
aliasedInclude an alias that is the same as the property name.- Returns:
- This property
 
- 
setAliasSets the alias.- Parameters:
- alias- the alias
 
- 
getAlias- Returns:
- The alias to use for the projection.
 
- 
isCompoundpublic boolean isCompound()- Returns:
- True if it's compound property
 
 
-