Class GroupByAdapter
- java.lang.Object
-
- com.ibm.fhir.database.utils.query.GroupByAdapter
-
public class GroupByAdapter extends Object
The GROUP BY part of a SELECT statement
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupByAdapter(Select select, GroupByClause gb, String... expressions)Protected constructor for modeling the GROUP BY part of a SELECT statement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Selectbuild()GroupByAdapterexpression(String expr)Add the given expression to the group by clause wrapped by this adapterHavingAdapterhaving(String predicate)Attach a HAVING predicate to the statement
-
-
-
Constructor Detail
-
GroupByAdapter
protected GroupByAdapter(Select select, GroupByClause gb, String... expressions)
Protected constructor for modeling the GROUP BY part of a SELECT statement.- Parameters:
select-gb-expressions-
-
-
Method Detail
-
expression
public GroupByAdapter expression(String expr)
Add the given expression to the group by clause wrapped by this adapter- Parameters:
expr-- Returns:
-
having
public HavingAdapter having(String predicate)
Attach a HAVING predicate to the statement- Returns:
-
build
public Select build()
-
-