All Superinterfaces:
Segment, Visitable

public interface Select extends Segment, Visitable
AST for a SELECT statement. Visiting order:
  1. Self
  2. SELECT columns
  3. FROM tables clause
  4. JOINs
  5. WHERE condition
  6. ORDER BY fields
Since:
1.1
Author:
Mark Paluch, Myeonghyeon Lee
See Also:
  • Method Details

    • builder

      static SelectBuilder builder()
      Creates a new SelectBuilder.
      Returns:
      a new SelectBuilder.
    • getFrom

      From getFrom()
    • getOrderBy

      List<OrderByField> getOrderBy()
      Returns:
      the List of ORDER BY fields.
    • getLimit

      OptionalLong getLimit()
      Optional limit. Used for limit/offset paging.
      Returns:
    • getOffset

      OptionalLong getOffset()
      Optional offset. Used for limit/offset paging.
      Returns:
    • isDistinct

      boolean isDistinct()
      Flag if this select is to return distinct rows.
      Returns:
    • getLockMode

      @Nullable LockMode getLockMode()