public static final class RawSql.Sql extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Sql(String unparsedSql)
Construct for unparsed SQL.
|
protected |
Sql(String unparsedSql,
String preFrom,
String preWhere,
boolean andWhereExpr,
String preHaving,
boolean andHavingExpr,
String orderByPrefix,
String orderBy,
boolean distinct)
Construct for parsed SQL.
|
| Modifier and Type | Method and 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() |
public boolean isDistinct()
public boolean isParsed()
This means Ebean can't add WHERE or HAVING expressions into the query - it will be left completely unmodified.
public String getUnparsedSql()
public String getPreFrom()
public String getPreWhere()
public boolean isAndWhereExpr()
public String getPreHaving()
public boolean isAndHavingExpr()
public String getOrderByPrefix()
public String getOrderBy()
Copyright © 2016. All rights reserved.