Package io.ebeaninternal.server.rawsql
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOrderBy()
Return the SQL ORDER BY clause.String
getOrderByPrefix()
Return the 'order by' keywords.String
getPreFrom()
Return the SQL prior to FROM clause.String
getPreHaving()
Return the SQL prior to HAVING clause.String
getPreWhere()
Return the SQL prior to WHERE clause.String
getUnparsedSql()
Return the SQL when it is unparsed.boolean
isAndHavingExpr()
Return true if there is already a HAVING clause and any extra having expressions start with AND.boolean
isAndWhereExpr()
Return true if there is already a WHERE clause and any extra where expressions start with AND.boolean
isDistinct()
boolean
isParsed()
Return true if the SQL is left completely unmodified.String
toString()
-
-
-
Method Detail
-
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.
-
-