public class CQueryPredicates extends Object
This includes the where and having expressions which can be made up of Strings with named parameters or Expression objects.
This builds the appropriate bits of where and having clauses and binds the named parameters and expression values into the prepared statement.
| Constructor and Description |
|---|
CQueryPredicates(Binder binder,
OrmQueryRequest<?> request) |
| Modifier and Type | Method and Description |
|---|---|
String |
bind(DataBind dataBind) |
String |
getDbFilterMany()
Return a db filter for filtering many fetch joins.
|
String |
getDbHaving()
Return the db column version of the combined where clause.
|
String |
getDbOrderBy()
Return the db column version of the order by clause.
|
String |
getDbWhere()
Return the db column version of the combined where clause.
|
String |
getHavingExpressionSql()
The having sql from the expression objects.
|
String |
getHavingRawSql()
The having sql with named bind parameters converted to ?.
|
String |
getLogWhereSql() |
Set<String> |
getPredicateIncludes()
Return the includes required for the where and order by clause.
|
ArrayList<Object> |
getWhereExprBindValues()
Return the bind values for the where expression.
|
String |
getWhereExpressionSql()
The where sql from the expression objects.
|
String |
getWhereRawSql()
The where sql with named bind parameters converted to ?.
|
void |
parseTableAlias(SqlTreeAlias alias)
Replace the table alias place holders.
|
void |
prepare(boolean buildSql) |
void |
prepareRawSql(DeployParser deployParser) |
public CQueryPredicates(Binder binder, OrmQueryRequest<?> request)
public String bind(DataBind dataBind) throws SQLException
SQLExceptionpublic void prepare(boolean buildSql)
public void prepareRawSql(DeployParser deployParser)
public void parseTableAlias(SqlTreeAlias alias)
public ArrayList<Object> getWhereExprBindValues()
public String getDbHaving()
public String getDbWhere()
public String getDbFilterMany()
public String getDbOrderBy()
public Set<String> getPredicateIncludes()
public String getWhereRawSql()
public String getWhereExpressionSql()
public String getHavingRawSql()
public String getHavingExpressionSql()
public String getLogWhereSql()
Copyright © 2014. All Rights Reserved.