Class WhereAdapter


  • public class WhereAdapter
    extends BaseWhereAdapter<WhereAdapter>
    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,
                            WhereClause whereClause)
        Public constructor to start the WHERE clause in a select statement
        Parameters:
        select -
        whereClause -
      • WhereAdapter

        public WhereAdapter​(Select select,
                            WhereClause whereClause,
                            java.lang.String predicate)
        Public constructor
        Parameters:
        select -
        whereClause -
        predicate -
      • WhereAdapter

        public WhereAdapter​(Select select,
                            WhereClause whereClause,
                            java.lang.String tableAlias,
                            java.lang.String columnName)
        Convenience for when the statement is written like .where("lr", "current_resource_id").eq("r", "resource_id")
        Parameters:
        select -
        whereClause -
        tableAlias -
        columnName -
    • Method Detail

      • groupBy

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

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

        public Select build()
        Get the select statement wrapped by this adapter
        Returns: