Class WhereAdapter


  • public class WhereAdapter
    extends Object
    Adapter to help build the WHERE clause expression. To allow a fluent style, we construct an expression tree
    • Constructor Detail

      • WhereAdapter

        public WhereAdapter​(Select select,
                            String predicate)
        Public constructor
        Parameters:
        select -
        predicate -
    • Method Detail

      • where

        public WhereAdapter where​(String predicate)
        Parameters:
        predicate -
        Returns:
      • groupBy

        public GroupByAdapter groupBy​(String... expressions)
        Start building the GROUP BY clause
        Parameters:
        expressions -
        Returns:
      • orderBy

        public OrderByAdapter orderBy​(String... expressions)
        Start building the ORDER BY clause
        Parameters:
        expressions -
        Returns:
      • build

        public Select build()