|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.query.lib.QueryEvalContext
Represent a Medor query executed for a JDO query. It contains the query, the evaluator, a link to the SpeedoCompiledQuery and some information about the data prefetching. A JDO can correspond to several Medor query in case of inheritance for example.
Field Summary | |
java.util.Map |
evalMDMap
The EvaluationMetaData map for query nodes |
QueryEvaluator |
evaluator
the evaluator of the query |
PClassMapping |
pcm
the PClassMapping of the prefetched class |
int |
pnIndex
is the index of the identifier (prefetch index too) |
QueryTree |
query
The medor querytree representing the query |
SpeedoCompiledQuery |
sqc
The original speedo compiled query |
boolean |
withPrefetch
indicates if the prefetching is activated |
Constructor Summary | |
QueryEvalContext(QueryTree qt,
boolean withPrefetch,
PClassMapping pcm,
SpeedoCompiledQuery sqc,
java.util.Map evalMDMap)
|
Method Summary | |
TupleCollection |
eval(ProxyManager pm,
ParameterOperand[] pos,
java.lang.Object connection)
Executes the sub query |
protected java.lang.String |
posToString(ParameterOperand[] pos)
Produces a String representation of parameter for logging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public QueryTree query
public QueryEvaluator evaluator
public boolean withPrefetch
public int pnIndex
public PClassMapping pcm
public SpeedoCompiledQuery sqc
public java.util.Map evalMDMap
Constructor Detail |
public QueryEvalContext(QueryTree qt, boolean withPrefetch, PClassMapping pcm, SpeedoCompiledQuery sqc, java.util.Map evalMDMap)
qt
- is the medor querytree representing the querywithPrefetch
- indicates if the prefetching is activatedpcm
- is the PClassMapping of the prefetched classsqc
- is the original speedo compiled queryMethod Detail |
public TupleCollection eval(ProxyManager pm, ParameterOperand[] pos, java.lang.Object connection) throws MedorException
pm
- is the current persistence managerpos
- is the parameter of the queryconnection
- is the way to reach the persistence support
MedorException
protected java.lang.String posToString(ParameterOperand[] pos)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |