Class GroupByAdapter


  • public class GroupByAdapter
    extends java.lang.Object
    The GROUP BY part of a SELECT statement
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GroupByAdapter​(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
      Select build()  
      GroupByAdapter expression​(java.lang.String expr)
      Add the given expression to the group by clause wrapped by this adapter
      HavingAdapter having​(java.lang.String predicate)
      Attach a HAVING predicate to the statement
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()