org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc Class Reference

Inherits org.objectweb.jonas_ejb.deployment.api.MethodDesc.

Inheritance diagram for org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String getQuery ()
void setQuery (String query) throws ParseException
EjbqlQueryTreeHolder getQueryTreeHolder (PMapper mapper) throws DeploymentDescException
boolean isResultTypeMappingRemote ()
void setResultTypeMapping (String resultTypeMapping) throws DeploymentDescException
boolean getPrefetch ()
String toString ()

Static Public Member Functions

String queryMethodElementToString (org.objectweb.jonas_ejb.deployment.xml.QueryMethod m)

Package Functions

 MethodCmp2Desc (BeanDesc beanDesc, Method meth, int index)

Detailed Description

Class to hold meta-information related to CMP2 find/select methods
Author:
Christophe Ney [cney@batisseurs.com] : Initial developer

Helene Joanin

Definition at line 45 of file MethodCmp2Desc.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.MethodCmp2Desc BeanDesc  beanDesc,
Method  meth,
int  index
[package]
 

construtor form XML data binding structures

Definition at line 57 of file MethodCmp2Desc.java.


Member Function Documentation

boolean org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.getPrefetch  ) 
 

Get the prefetch tag value for this method. May be true only for finder methods (not for ejbSelect methods)

Definition at line 123 of file MethodCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.EntityDesc.isPrefetch().

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

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.getQuery  ) 
 

get EJB-QL query when defined

Returns:
possibly null String containing the EJB-QL query for the method

Definition at line 66 of file MethodCmp2Desc.java.

EjbqlQueryTreeHolder org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.getQueryTreeHolder PMapper  mapper  )  throws DeploymentDescException
 

return a query tree holder allowing evaluation of the query

Definition at line 86 of file MethodCmp2Desc.java.

boolean org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.isResultTypeMappingRemote  ) 
 

get result type mapping state (remote/local)

Returns:
true when remote

Definition at line 101 of file MethodCmp2Desc.java.

String org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.queryMethodElementToString org.objectweb.jonas_ejb.deployment.xml.QueryMethod  m  )  [static]
 

String representation of the given element <method>

Parameters:
m an element <method>
Returns:
String representation of the given element method

Definition at line 137 of file MethodCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.MethodDesc.methodElementToString().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.setQuery String  query  )  throws ParseException
 

set EJB-QL query. Because of the deployment descriptor structure, the query is set after the object is created.

Definition at line 74 of file MethodCmp2Desc.java.

void org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.setResultTypeMapping String  resultTypeMapping  )  throws DeploymentDescException
 

set the state of resultTypeMappingRemote

Definition at line 108 of file MethodCmp2Desc.java.

String org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.toString  ) 
 

String representation of the object for test purpose

Returns:
String representation of this object

Reimplemented from org.objectweb.jonas_ejb.deployment.api.MethodDesc.

Definition at line 145 of file MethodCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString().

Here is the call graph for this function:


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