Class GroupByAdapter
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.query.GroupByAdapter
-
public class GroupByAdapter extends java.lang.ObjectThe GROUP BY part of a SELECT statement
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupByAdapter(Select select, GroupByClause gb, java.lang.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(java.lang.String expr)Add the given expression to the group by clause wrapped by this adapterHavingAdapterhaving(java.lang.String predicate)Attach a HAVING predicate to the statement
-
-
-
Constructor Detail
-
GroupByAdapter
protected GroupByAdapter(Select select, GroupByClause gb, java.lang.String... expressions)
Protected constructor for modeling the GROUP BY part of a SELECT statement.- Parameters:
select-gb-expressions-
-
-
Method Detail
-
expression
public GroupByAdapter expression(java.lang.String expr)
Add the given expression to the group by clause wrapped by this adapter- Parameters:
expr-- Returns:
-
having
public HavingAdapter having(java.lang.String predicate)
Attach a HAVING predicate to the statement- Returns:
-
build
public Select build()
-
-