org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor Class Reference

Inherits org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Inheritance diagram for org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EjbqlSelectVisitor (ASTEJBQL ejbql, Map _fields, SelectProject sp) throws Exception
QueryTree getQueryTree ()
Object visit (ASTSelectClause node, Object data)
Object visit (ASTSelectExpression node, Object data)
Object visit (ASTAggregateSelectExpression node, Object data)
Object visit (ASTCmpPathExpression node, Object data)
Object visit (ASTSingleValuedCmrPathExpression node, Object data)
Object visit (ASTSingleValuedPathExpression node, Object data)
Object visit (ASTIdentificationVariable node, Object data)
Object visit (ASTPath node, Object data)

Detailed Description

Implementation of a visitor that creates the selection projection for corresponding to a given WHERE clause. Created on Sep 6, 2002
Author:
Christophe Ney [cney@batisseurs.com]: Initial developer

Helene Joanin: Take into account the EJBQL version 2.1 syntax.

Helene Joanin: Take into account the aggregate select expression.

Definition at line 63 of file EjbqlSelectVisitor.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.EjbqlSelectVisitor ASTEJBQL  ejbql,
Map  _fields,
SelectProject  sp
throws Exception
 

Constructor

Parameters:
ejbql root of the lexical tree of the query
_fields Map with (identifier,JormExtent) pairs

Definition at line 74 of file EjbqlSelectVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit().

Here is the call graph for this function:


Member Function Documentation

QueryTree org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.getQueryTree  ) 
 

get the query tree that was built from visiting the lexical tree. This is a nest if there is an aggregate function or a select projet otherwise.

Definition at line 84 of file EjbqlSelectVisitor.java.

Referenced by org.objectweb.jonas_ejb.lib.EjbqlQueryTreeHolder.EjbqlQueryTreeHolder().

Object org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit ASTPath  node,
Object  data
 

Push the Node to the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 204 of file EjbqlSelectVisitor.java.

Object org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit ASTIdentificationVariable  node,
Object  data
 

Push the Node to the stack

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 196 of file EjbqlSelectVisitor.java.

Object org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit ASTSingleValuedPathExpression  node,
Object  data
 

Visit child node

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 189 of file EjbqlSelectVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit ASTSingleValuedCmrPathExpression  node,
Object  data
 

Visit child node

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 182 of file EjbqlSelectVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit ASTCmpPathExpression  node,
Object  data
 

Visit child node

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 175 of file EjbqlSelectVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit ASTAggregateSelectExpression  node,
Object  data
 

Visit child node

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 143 of file EjbqlSelectVisitor.java.

References org.objectweb.jonas_ejb.deployment.ejbql.SimpleNode.distinct, org.objectweb.jonas_ejb.deployment.ejbql.SimpleNode.ops, and org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit ASTSelectExpression  node,
Object  data
 

Visit child node

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 136 of file EjbqlSelectVisitor.java.

References org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit ASTSelectClause  node,
Object  data
 

Visit child node. SELECT [ DISTINCT ] {select_expression | OBJECT (identification_variable)}

Reimplemented from org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

Definition at line 92 of file EjbqlSelectVisitor.java.

References org.objectweb.jonas_ejb.deployment.ejbql.SimpleNode.distinct.

Referenced by org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.EjbqlSelectVisitor(), and org.objectweb.jonas_ejb.lib.EjbqlSelectVisitor.visit().


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