| |
|
| java.lang.Object org.objectweb.jonas_ejb.lib.EjbqlQueryTreeHolder
EjbqlQueryTreeHolder | public class EjbqlQueryTreeHolder (Code) | | Class to hold the query tree of a given EJBQL request. This allows walking the
JormExtents of the tree to set the mappers.
author: Christophe Ney - cney@batisseurs.com : Initial developer author: Helene Joanin: Take into account the ORDER BY clause. author: Sebastien Chassande-Barrioz & Helene Joanin: prefetch code author: Helene Joanin: Take into account the aggregate select expression. author: Cyrille Blot: Take into account the LIMIT clause |
optimizedQuery | QueryEvaluator optimizedQuery(Code) | | |
queryOptimizer | QueryTransformer queryOptimizer(Code) | | |
queryTree | QueryTree queryTree(Code) | | |
EjbqlQueryTreeHolder | public EjbqlQueryTreeHolder(MethodCmp2Desc mDesc, ASTEJBQL ejbql, PMapper mapper) throws Exception(Code) | | constructor of a holder for a specific query.
Parameters: mDesc - JOnAS meta-information for the corresponding finder/select method Parameters: ejbql - root of the lexical tree of the query Parameters: mapper - mapper to associate at each leaves of the QueryTree.The mapper may be null in case of the QueryTree is build in the GenIC phase. |
getLimiterRanges | public EjbqlLimiterRange[] getLimiterRanges()(Code) | | returns the limiter ranges of the LIMIT clause.May be 0 element if no LIMIT clause, 1 or 2 elements otherwise. |
getOptimizedQueryTree | public QueryEvaluator getOptimizedQueryTree() throws Exception(Code) | | Get the query evaluator of the optimized query. The query is optimized on first call.
All mappers of the query should have been already set with the help of the iterator
returned by the getJormExtentIterator method.
|
getPrefetchIndex | public int getPrefetchIndex()(Code) | | |
getQueryOptimizer | public QueryTransformer getQueryOptimizer()(Code) | | get the current query tree optimizer
|
getQueryTree | public QueryTree getQueryTree()(Code) | | get the query tree that was built from visiting the lexical tree
|
getResField | public Field getResField()(Code) | | get the Medor result Field of the query (useful for the ejbSelect method)
|
setQueryOptimizer | public void setQueryOptimizer(QueryTransformer qtf)(Code) | | Set the optimizer to be used when optimizing the query tree
|
|
|
|