Class SelectConstructor
java.lang.Object
org.apache.openjpa.jdbc.kernel.exps.SelectConstructor
- All Implemented Interfaces:
 Serializable
Turns parsed queries into selects.
- Author:
 - Abe White
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionevaluate(ExpContext ctx, Select parent, String alias, QueryExpressions exps, QueryExpressionsState state) Evaluate the expression, returning a new select and filling in any associated expression state.booleanisExtent()Return true if we know the select to have on criteria; to be an extent.voidselect(Select sel, ExpContext ctx, ClassMapping mapping, boolean subclasses, QueryExpressions exps, QueryExpressionsState state, int eager) Select the data for this query.voidsetSubselect(Select subselect)  
- 
Constructor Details
- 
SelectConstructor
public SelectConstructor() 
 - 
 - 
Method Details
- 
isExtent
public boolean isExtent()Return true if we know the select to have on criteria; to be an extent. Note that even if this method returns false,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. - 
setSubselect
 - 
evaluate
public 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. Useselect(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.- Parameters:
 ctx- fill with execution contextstate- will be filled with expression state
 - 
select
public void select(Select sel, ExpContext ctx, ClassMapping mapping, boolean subclasses, QueryExpressions exps, QueryExpressionsState state, int eager) Select the data for this query. 
 -