jrun.ejb.ejbql
Class InputParam

java.lang.Object
  |
  +--jrun.ejb.ejbql.ExpressionBase
        |
        +--jrun.ejb.ejbql.InputParam
All Implemented Interfaces:
Element, Expression, Literal

public class InputParam
extends ExpressionBase
implements Literal

Represents the use of a finder or select method parameter in an EJB QL expression.

Author:
Enrique Duvos

Fields inherited from interface jrun.ejb.ejbql.Element
UNSPECIFIED_TRAVERSAL_ORDER
 
Constructor Summary
InputParam(java.lang.Integer paramIndex, java.lang.Class paramClass)
           
 
Method Summary
 void accept(Visitor visitor)
           
 void addField(java.lang.String name)
           
 boolean equals(java.lang.Object other)
           
 java.util.List getFields()
           
 java.lang.String getJavaType()
           
 java.lang.Object getLiteral()
           
 java.lang.Class getParamClass()
           
 java.lang.Integer getParamIndex()
          The corresponding input parameter from the associated method
 boolean isInputParam()
           
 boolean isLocalInterface()
           
 boolean isRemoteInterface()
           
 java.lang.String toSql()
           
 java.lang.String toString()
           
 
Methods inherited from class jrun.ejb.ejbql.ExpressionBase
getChildren, isCmpField, isCmrField, isIdentificationVar, isNavigationExpression, isOperatorExpression
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jrun.ejb.ejbql.Expression
isCmpField, isCmrField, isIdentificationVar, isNavigationExpression, isOperatorExpression
 
Methods inherited from interface jrun.ejb.ejbql.Element
getChildren
 

Constructor Detail

InputParam

public InputParam(java.lang.Integer paramIndex,
                  java.lang.Class paramClass)
           throws ParseException
Method Detail

getLiteral

public java.lang.Object getLiteral()
Specified by:
getLiteral in interface Literal

isInputParam

public boolean isInputParam()
Specified by:
isInputParam in interface Expression
Overrides:
isInputParam in class ExpressionBase

isRemoteInterface

public boolean isRemoteInterface()

isLocalInterface

public boolean isLocalInterface()

getParamIndex

public java.lang.Integer getParamIndex()
The corresponding input parameter from the associated method

getParamClass

public java.lang.Class getParamClass()

getJavaType

public java.lang.String getJavaType()
Specified by:
getJavaType in interface Expression

accept

public void accept(Visitor visitor)
Specified by:
accept in interface Element

addField

public void addField(java.lang.String name)

getFields

public java.util.List getFields()

toString

public java.lang.String toString()
Specified by:
toString in interface Literal
Overrides:
toString in class java.lang.Object

toSql

public java.lang.String toSql()
Specified by:
toSql in interface Literal

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright � 2002 Macromedia Corporation. All Rights Reserved.