org.objectweb.jonas_ejb.lib.EjbqlOrderByVisitor Class Reference

Inherits org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EjbqlOrderByVisitor (ASTEJBQL ejbql, Map _fields) throws Exception
OrderField[] getOrderFields ()
Object visit (ASTOrderByClause node, Object data)
Object visit (ASTOrderByItem node, Object data)
Object visit (ASTCmpPathExpression node, Object data)
Object visit (ASTPath node, Object data)

Detailed Description

Implementation of a visitor that creates a list of org.objectweb.medor.query.api.OrderField to a given ORDER BY clause. Created on Aug 27, 2003
Author:
Helene Joanin

Definition at line 51 of file EjbqlOrderByVisitor.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.lib.EjbqlOrderByVisitor.EjbqlOrderByVisitor ASTEJBQL  ejbql,
Map  _fields
throws Exception
 

Constructor

Parameters:
ejbql root of the lexical tree of the query
fields Map with (name,QueryTreeField) pairs of all the variables appear in the query

Definition at line 61 of file EjbqlOrderByVisitor.java.

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

Here is the call graph for this function:


Member Function Documentation

OrderField [] org.objectweb.jonas_ejb.lib.EjbqlOrderByVisitor.getOrderFields  ) 
 

get the that was built from visiting the lexical tree

Definition at line 70 of file EjbqlOrderByVisitor.java.

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

Push the Node to the stack

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

Definition at line 120 of file EjbqlOrderByVisitor.java.

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

Push corresponding MedorField to the stack.
cmp_path_expression ::= path was in initial BNF cmp_path_expression ::= {identification_variable | single_valued_cmr_path_expression}.cmp_field

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

Definition at line 105 of file EjbqlOrderByVisitor.java.

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

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlOrderByVisitor.visit ASTOrderByItem  node,
Object  data
 

Visit child node.

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

Definition at line 92 of file EjbqlOrderByVisitor.java.

References org.objectweb.jonas_ejb.deployment.ejbql.SimpleNode.asc, and org.objectweb.jonas_ejb.lib.EjbqlOrderByVisitor.visit().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlOrderByVisitor.visit ASTOrderByClause  node,
Object  data
 

Visit child node. ORDER BY OrderByItem() (, OrderByItem() )*

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

Definition at line 84 of file EjbqlOrderByVisitor.java.

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


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