org.objectweb.jonas_ejb.container.jorm.MedorFactory Class Reference

Inherits org.objectweb.jonas_ejb.container.jorm.JormFactory.

Inherited by org.objectweb.jonas_ejb.container.jorm.RdbFactory.

Inheritance diagram for org.objectweb.jonas_ejb.container.jorm.MedorFactory:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.jorm.MedorFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

synchronized QueryEvaluator getOptimizedRequest (MethodCmp2Desc methodDesc) throws MedorException
TupleCollection evaluate (Object conn, int methodIndex, ParameterOperand[] parameters) throws MedorException
void init (EntityDesc ed, JContainer c, String mapperName)

Protected Attributes

QueryTransformer queryTransformer = null

Detailed Description

This class does the initialisation of Medor and permits to access to the query. The optimisation of the query tree is done during the first time that it is used.
Author:
S.Chassande-Barrioz

Definition at line 74 of file MedorFactory.java.


Member Function Documentation

TupleCollection org.objectweb.jonas_ejb.container.jorm.MedorFactory.evaluate Object  conn,
int  methodIndex,
ParameterOperand[]  parameters
throws MedorException
 

It evaluate an optimized medor request according to the specified parameters To evalute the medor request the query evaluator is used.

Parameters:
conn is the connection handle
methodIndex is method index which permits to find a medor request.
parameters is the parameters (key=parameter name / value=parameter value)
Returns:
TupleCollection is the result of the request

Definition at line 169 of file MedorFactory.java.

References org.objectweb.jonas_ejb.lib.EjbqlLimiterRange.getKind(), org.objectweb.jonas_ejb.deployment.api.MethodDesc.getMethod(), org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.getPrefetch(), org.objectweb.jonas_ejb.lib.EjbqlLimiterRange.getValue(), and org.objectweb.jonas_ejb.lib.EjbqlLimiterRange.KIND_PARAMETER.

Here is the call graph for this function:

synchronized QueryEvaluator org.objectweb.jonas_ejb.container.jorm.MedorFactory.getOptimizedRequest MethodCmp2Desc  methodDesc  )  throws MedorException
 

It retrieves a medor request which is evaluable and optimized. The method index is translate into a request index, then the found request is optimized if it is not already.

Parameters:
methodDesc is the MethodCmp2Desc of the finder or select method.
Returns:
the QueryTree optimized which is associated to the method index

Definition at line 112 of file MedorFactory.java.

References org.objectweb.jonas_ejb.lib.EjbqlQueryTreeHolder.getPrefetchIndex(), org.objectweb.jonas_ejb.lib.EjbqlQueryTreeHolder.getQueryOptimizer(), org.objectweb.jonas_ejb.container.jorm.MedorFactory.queryTransformer, and org.objectweb.jonas_ejb.lib.EjbqlQueryTreeHolder.setQueryOptimizer().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.jorm.MedorFactory.init EntityDesc  ed,
JContainer  c,
String  mapperName
 

Initialization of the factory. This is called just after the newInstance() from the JContainer (addBean method)

Reimplemented from org.objectweb.jonas_ejb.container.jorm.JormFactory.

Reimplemented in org.objectweb.jonas_ejb.container.jorm.RdbFactory.

Definition at line 249 of file MedorFactory.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.getJormManager(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.logger, and org.objectweb.jonas_ejb.deployment.api.BeanDesc.logger.

Here is the call graph for this function:


Member Data Documentation

QueryTransformer org.objectweb.jonas_ejb.container.jorm.MedorFactory.queryTransformer = null [protected]
 

This field references the query transformer which must be used to optimize the medor requests.

Definition at line 80 of file MedorFactory.java.

Referenced by org.objectweb.jonas_ejb.container.jorm.MedorFactory.getOptimizedRequest().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:11:03 2005 for JOnAS by  doxygen 1.3.9.1