Class GroupByAdapter


  • public class GroupByAdapter
    extends Object
    The GROUP BY part of a SELECT 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()