org.objectweb.jonas_ejb.lib.EjbqlLimitVisitor Class Reference

Inherits org.objectweb.jonas_ejb.lib.EjbqlAbstractVisitor.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EjbqlLimitVisitor (ASTEJBQL ejbql, Class[] paramTypes) throws Exception
EjbqlLimiterRange[] getLimiterRanges ()
Object visit (ASTLimitClause node, Object data)
Object visit (ASTLimitExpression node, Object data)
Object visit (ASTIntegerLiteral node, Object data)
Object visit (ASTInputParameter node, Object data)

Detailed Description

Implementation of a visitor that creates the limiter ranges corresponding to the LIMIT clause
Author:
Cyrille Blot : Initial developer

Helene Joanin

Definition at line 43 of file EjbqlLimitVisitor.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.lib.EjbqlLimitVisitor.EjbqlLimitVisitor ASTEJBQL  ejbql,
Class[]  paramTypes
throws Exception
 

Constructor

Parameters:
ejbql root of the lexical tree of the query
paramTypes Types of the parameters list of the finder/select method
Exceptions:
Exception in error case

Definition at line 62 of file EjbqlLimitVisitor.java.

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

Here is the call graph for this function:


Member Function Documentation

EjbqlLimiterRange [] org.objectweb.jonas_ejb.lib.EjbqlLimitVisitor.getLimiterRanges  ) 
 

Returns:
returns the limiter ranges of the LIMIT clause. May be 0 element if no LIMIT clause, 1 or 2 elements otherwise.

Definition at line 71 of file EjbqlLimitVisitor.java.

Object org.objectweb.jonas_ejb.lib.EjbqlLimitVisitor.visit ASTInputParameter  node,
Object  data
 

Node with value set to parameter index (1..n) string. Push the corresponding EjbqlLimiterRange to the stack

Parameters:
node sub-root of the lexical tree
data stack
Returns:
returns null

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

Definition at line 124 of file EjbqlLimitVisitor.java.

Object org.objectweb.jonas_ejb.lib.EjbqlLimitVisitor.visit ASTIntegerLiteral  node,
Object  data
 

Visit child nodes literal ::= integer_literal Push the corresponding EjbqlLimiterRange to the stack

Parameters:
node sub-root of the lexical tree
data stack
Returns:
returns null

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

Definition at line 112 of file EjbqlLimitVisitor.java.

Object org.objectweb.jonas_ejb.lib.EjbqlLimitVisitor.visit ASTLimitExpression  node,
Object  data
 

Visit child node LimitExpression().

Parameters:
node sub-root of the lexical tree
data stack
Returns:
returns null

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

Definition at line 100 of file EjbqlLimitVisitor.java.

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

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.lib.EjbqlLimitVisitor.visit ASTLimitClause  node,
Object  data
 

Visit child node. LIMIT LimitExpression() ( , LimitExpression())?

Parameters:
node sub-root of the lexical tree
data stack
Returns:
returns null

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

Definition at line 81 of file EjbqlLimitVisitor.java.

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


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