Class SpiRawSql.Sql

java.lang.Object
io.ebeaninternal.server.rawsql.SpiRawSql.Sql
All Implemented Interfaces:
Serializable
Enclosing interface:
SpiRawSql

public static final class SpiRawSql.Sql extends Object implements Serializable
Represents the sql part of the query. For parsed RawSql the sql is broken up so that Ebean can insert extra WHERE and HAVING expressions into the SQL.
See Also:
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isDistinct

      public boolean isDistinct()
    • isParsed

      public boolean isParsed()
      Return true if the SQL is left completely unmodified.

      This means Ebean can't add WHERE or HAVING expressions into the query - it will be left completely unmodified.

    • getUnparsedSql

      public String getUnparsedSql()
      Return the SQL when it is unparsed.
    • getPreFrom

      public String getPreFrom()
      Return the SQL prior to FROM clause.
    • getPreWhere

      public String getPreWhere()
      Return the SQL prior to WHERE clause.
    • isAndWhereExpr

      public boolean isAndWhereExpr()
      Return true if there is already a WHERE clause and any extra where expressions start with AND.
    • getPreHaving

      public String getPreHaving()
      Return the SQL prior to HAVING clause.
    • isAndHavingExpr

      public boolean isAndHavingExpr()
      Return true if there is already a HAVING clause and any extra having expressions start with AND.
    • getOrderByPrefix

      public String getOrderByPrefix()
      Return the 'order by' keywords. This can contain additional keywords, for example 'order siblings by' as Oracle syntax.
    • getOrderBy

      public String getOrderBy()
      Return the SQL ORDER BY clause.