Package io.jans.orm.model
Class SearchProjection
java.lang.Object
io.jans.orm.model.SearchProjection
- All Implemented Interfaces:
Serializable
Describes the SELECT-clause shape of a server-side GROUP BY or DISTINCT query.
A projection is either grouping (
groupBy(String...)) or distinct
(distinct(String...)). Grouping projections may carry aggregates
(COUNT/SUM/MIN/MAX/AVG); distinct projections may not. Result ordering is
restricted to projection attributes and aggregate aliases.- Author:
- Yuriy Movchan
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic class -
Method Summary
Modifier and TypeMethodDescriptioncount()static SearchProjectionSelect distinct combinations of the specified attributes.String[]static SearchProjectionGroup result rows by the specified attributes.booleanbooleanOrder result rows by a projection attribute or an aggregate alias.toString()
-
Method Details
-
groupBy
Group result rows by the specified attributes. -
distinct
Select distinct combinations of the specified attributes. -
count
-
count
-
sum
-
sum
-
min
-
min
-
max
-
max
-
avg
-
avg
-
orderBy
Order result rows by a projection attribute or an aggregate alias. -
isDistinct
public boolean isDistinct() -
getAttributes
-
getAggregates
-
getOrderBy
-
hasAggregates
public boolean hasAggregates() -
toString
-