public class SelectConstructor extends Object implements Serializable
Constructor and Description |
---|
SelectConstructor() |
Modifier and Type | Method and Description |
---|---|
Select |
evaluate(ExpContext ctx,
Select parent,
String alias,
QueryExpressions exps,
QueryExpressionsState state)
Evaluate the expression, returning a new select and filling in any
associated expression state.
|
boolean |
isExtent()
Return true if we know the select to have on criteria; to be an extent.
|
void |
select(Select sel,
ExpContext ctx,
ClassMapping mapping,
boolean subclasses,
QueryExpressions exps,
QueryExpressionsState state,
int eager)
Select the data for this query.
|
void |
setSubselect(Select subselect) |
public boolean isExtent()
evaluate(org.apache.openjpa.jdbc.kernel.exps.ExpContext, org.apache.openjpa.jdbc.sql.Select, java.lang.String, org.apache.openjpa.kernel.exps.QueryExpressions, org.apache.openjpa.jdbc.kernel.exps.QueryExpressionsState)
may still
return null if we haven't cached whether the query is an extent yet.public void setSubselect(Select subselect)
public Select evaluate(ExpContext ctx, Select parent, String alias, QueryExpressions exps, QueryExpressionsState state)
select(org.apache.openjpa.jdbc.sql.Select, org.apache.openjpa.jdbc.kernel.exps.ExpContext, org.apache.openjpa.jdbc.meta.ClassMapping, boolean, org.apache.openjpa.kernel.exps.QueryExpressions, org.apache.openjpa.jdbc.kernel.exps.QueryExpressionsState, int)
to then select the data.ctx
- fill with execution contextstate
- will be filled with expression statepublic void select(Select sel, ExpContext ctx, ClassMapping mapping, boolean subclasses, QueryExpressions exps, QueryExpressionsState state, int eager)
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.