org.objectweb.speedo.query.jdo
Class JDOCompiledSelectQuery

java.lang.Object
  extended by org.objectweb.speedo.query.lib.AbstractCompiledQuery
      extended by org.objectweb.speedo.query.jdo.JDOAbstractCompiledQuery
          extended by org.objectweb.speedo.query.jdo.JDOCompiledSelectQuery
All Implemented Interfaces:
CacheEntry, FixableCacheEntry, ReplaceableCacheEntry, StateFilter, CompiledQuery

public class JDOCompiledSelectQuery
extends JDOAbstractCompiledQuery

JDOCompiledQuery object represents a jdo query. This object is created when a new query is created, and can be used several times. A list of JDOCompiledQuery is managed with a JDOQueryManager component. When a user creates a new JDO Query object (SpeedoQuery), a JDOCompiledQuery object is associated to the JDOQuery object which is used to delegate some methods.

Author:
S.Chassande-Barrioz

Field Summary
 
Fields inherited from class org.objectweb.speedo.query.jdo.JDOAbstractCompiledQuery
filterParserLogger, hparams, hvars, paramName2paramClass, qd, varParserlogger
 
Fields inherited from class org.objectweb.speedo.query.lib.AbstractCompiledQuery
age, classLoader, fixCount, jf, logger, mapper, pncParams, prefetchBufferFactory, status, userCache, userCacheIndexes
 
Fields inherited from interface org.objectweb.speedo.query.api.CompiledQuery
COMPILED, DEFINED, UNDEFINED
 
Constructor Summary
JDOCompiledSelectQuery()
           
 
Method Summary
 void compile()
          compile the current SpeedoCompiledQuery.
protected  java.lang.Object executeQT(JDOPOManagerItf pm, org.objectweb.medor.expression.api.ParameterOperand[] pos, QueryDefinition userqd)
          executes a the current query, and returns a Collection of object.
 JDOQueryEvalContext[] getQueryEvalContext()
           
 
Methods inherited from class org.objectweb.speedo.query.jdo.JDOAbstractCompiledQuery
defineQuery, execute, execute, flushCache, getCeIdentifier, getClass, getDefinition, init, isPrefetchResult, optimize, setMapper, toHashtableParams, toHashtableVars, treatParameter
 
Methods inherited from class org.objectweb.speedo.query.lib.AbstractCompiledQuery
accept, assignMapper, fixCe, getCeAge, getCeFixCount, getCeObject, getFieldComparaison, getLogger, getMapper, getPrefetchBufferFactory, getPType, getStatus, init, setCeAge, setJormFactory, unfixCe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOCompiledSelectQuery

public JDOCompiledSelectQuery()
Method Detail

getQueryEvalContext

public JDOQueryEvalContext[] getQueryEvalContext()

compile

public void compile()
             throws SpeedoException,
                    MedorException,
                    org.objectweb.medor.expression.api.ExpressionException
compile the current SpeedoCompiledQuery. The query is prepared to be executed. The PersistenceManager is set (even if there was a previous definition of a PersistenceManager.

Throws:
SpeedoException
MedorException
org.objectweb.medor.expression.api.ExpressionException

executeQT

protected java.lang.Object executeQT(JDOPOManagerItf pm,
                                     org.objectweb.medor.expression.api.ParameterOperand[] pos,
                                     QueryDefinition userqd)
                              throws EvaluationException,
                                     MedorException,
                                     SpeedoException
executes a the current query, and returns a Collection of object.

Specified by:
executeQT in class JDOAbstractCompiledQuery
Parameters:
userqd - is the user query definition. It contains the range values and some other values that can change from the original compiled query.
Returns:
a new Collection of objects.
Throws:
EvaluationException
MedorException
SpeedoException