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 Summary
ConstructorsConstructorDescriptionPropertyProjection(String propertyName) Default constructor.PropertyProjection(String propertyName, boolean compound) Default constructor. -
Method Summary
-
Constructor Details
-
PropertyProjection
Default constructor.- Parameters:
propertyName- The property name
-
PropertyProjection
Default constructor.- Parameters:
propertyName- The property namecompound- Is compound property
-
-
Method Details
-
getPropertyName
- Returns:
- The property name
-
aliased
Include an alias that is the same as the property name.- Returns:
- This property
-
setAlias
Sets the alias.- Parameters:
alias- the alias
-
getAlias
- Returns:
- The alias to use for the projection.
-
isCompound
public boolean isCompound()- Returns:
- True if it's compound property
-