public class SimpleExpression extends AbstractExpression
propName| Constructor and Description |
|---|
SimpleExpression(String propertyName,
com.avaje.ebeaninternal.server.expression.SimpleExpression.Op type,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBindValues(SpiExpressionRequest request)
Add the parameter values to be set against query.
|
void |
addSql(SpiExpressionRequest request)
Add some sql to the query.
|
Object |
getValue() |
boolean |
isOpEquals() |
void |
queryAutoFetchHash(HashQueryPlanBuilder builder)
Based on the type and propertyName.
|
int |
queryBindHash()
Return the hash value for the values that will be bound.
|
void |
queryPlanHash(BeanQueryRequest<?> request,
HashQueryPlanBuilder builder)
Calculate a hash value for the expression.
|
containsMany, getElProp, getPropertyNamepublic boolean isOpEquals()
public void addBindValues(SpiExpressionRequest request)
SpiExpressionrequest - the associated request.public void addSql(SpiExpressionRequest request)
SpiExpressionThis will contain ? as a place holder for each associated bind values.
The 'sql' added to the query can contain object property names rather than db tables and columns. This 'sql' is later parsed converting the logical property names to their full database column names.
request - the associated request.public void queryAutoFetchHash(HashQueryPlanBuilder builder)
public void queryPlanHash(BeanQueryRequest<?> request, HashQueryPlanBuilder builder)
SpiExpressionThis is used where queries are the same except for the bind values, in which case the query execution plan can be reused.
public int queryBindHash()
SpiExpressionpublic Object getValue()
Copyright © 2014. All Rights Reserved.