public class IdInExpression extends Object implements SpiExpression
| Constructor and Description |
|---|
IdInExpression(List<?> idList) |
| 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.
|
void |
addSqlNoAlias(SpiExpressionRequest request)
For use with deleting non attached detail beans during stateless update.
|
void |
containsMany(BeanDescriptor<?> desc,
ManyWhereJoins manyWhereJoin)
Process "Many" properties populating ManyWhereJoins.
|
void |
queryAutoFetchHash(HashQueryPlanBuilder builder)
Incorporates the number of Id values to bind.
|
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.
|
public IdInExpression(List<?> idList)
public void containsMany(BeanDescriptor<?> desc, ManyWhereJoins manyWhereJoin)
SpiExpressionPredicates on Many properties require an extra independent join clause.
containsMany in interface SpiExpressionpublic void addBindValues(SpiExpressionRequest request)
SpiExpressionaddBindValues in interface SpiExpressionrequest - the associated request.public void addSqlNoAlias(SpiExpressionRequest 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.
addSql in interface SpiExpressionrequest - the associated request.public void queryAutoFetchHash(HashQueryPlanBuilder builder)
queryAutoFetchHash in interface SpiExpressionpublic 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.
queryPlanHash in interface SpiExpressionpublic int queryBindHash()
SpiExpressionqueryBindHash in interface SpiExpressionCopyright © 2014. All Rights Reserved.