org.objectweb.jonas_ejb.genic
Class VcMethod

java.lang.Object
  extended byorg.objectweb.jonas_ejb.genic.VcMethod

public class VcMethod
extends java.lang.Object

This class is the "Velocity context" for a interface method or a bean method used in the Velocity Templates.

Author:
Helene Joanin (Bull), Santiago Gala (sgala@hisitech.com) - 00/09/14 - Parameters can be followed by a number in the WHERE clause, Joe Gittings has proposed to code method signature for security in order to avoid same signature for inherited methods.

Method Summary
 boolean canThrowCreate()
           
 java.lang.String getActualParameters()
           
 java.lang.String getArrayObjectParameters()
          Gets an empty array if no parameters and return an array of objects of the parameters if any
 java.lang.String getCapName()
           
 java.lang.String getExceptionList()
           
 java.lang.String getFormalParameters()
           
 int getMethodIndex()
           
 java.lang.String getName()
           
 int getParametersNumber()
           
 java.lang.Class[] getParameterTypes()
           
 java.util.Vector getParamList()
           
 java.util.Vector getParamWhereList()
           
 org.objectweb.medor.api.Field getResEjbSelectField()
          Return the Medor field of tuple result of an ejbSelect method
 java.lang.String getReturnType()
           
 java.lang.String getSecuritySignature()
           
 java.lang.String getSqlStmt()
           
 java.lang.String getTupleGetter()
           
 java.lang.String getTupleGetterObjectClass()
           
 int getTxAttribute()
           
 boolean isCreate()
           
 boolean isEjbActivate()
           
 boolean isEjbCreate()
           
 boolean isEjbLoad()
           
 boolean isEjbPostCreate()
           
 boolean isEjbRemove()
           
 boolean isEjbSelectCol()
           
 boolean isEjbSelectReturnLocalBean()
           
 boolean isEjbSelectReturnRemoteBean()
           
 boolean isEjbSelectSet()
           
 boolean isEjbSelectSimple()
           
 boolean isEjbSetEntityContext()
           
 boolean isEjbStore()
           
 boolean isFinderAll()
           
 boolean isFinderByPk()
           
 boolean isFinderCol()
           
 boolean isFinderEnum()
           
 boolean isFinderSimple()
           
 boolean isRemoveHandle()
           
 boolean isRemovePk()
           
 boolean isRemoveThis()
           
 boolean isTupleGetterPrimitive()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()

getCapName

public java.lang.String getCapName()

getFormalParameters

public java.lang.String getFormalParameters()

getActualParameters

public java.lang.String getActualParameters()

getExceptionList

public java.lang.String getExceptionList()

canThrowCreate

public boolean canThrowCreate()

getSecuritySignature

public java.lang.String getSecuritySignature()

getTxAttribute

public int getTxAttribute()

getReturnType

public java.lang.String getReturnType()

isFinderAll

public boolean isFinderAll()

isFinderByPk

public boolean isFinderByPk()

isFinderSimple

public boolean isFinderSimple()

isFinderEnum

public boolean isFinderEnum()

isFinderCol

public boolean isFinderCol()

isEjbSelectSimple

public boolean isEjbSelectSimple()

isEjbSelectSet

public boolean isEjbSelectSet()

isEjbSelectCol

public boolean isEjbSelectCol()

isEjbSelectReturnRemoteBean

public boolean isEjbSelectReturnRemoteBean()

isEjbSelectReturnLocalBean

public boolean isEjbSelectReturnLocalBean()

isCreate

public boolean isCreate()

isEjbCreate

public boolean isEjbCreate()

isEjbPostCreate

public boolean isEjbPostCreate()

isRemoveThis

public boolean isRemoveThis()

isRemovePk

public boolean isRemovePk()

isRemoveHandle

public boolean isRemoveHandle()

isEjbRemove

public boolean isEjbRemove()

isEjbLoad

public boolean isEjbLoad()

isEjbStore

public boolean isEjbStore()

isEjbSetEntityContext

public boolean isEjbSetEntityContext()

isEjbActivate

public boolean isEjbActivate()

getSqlStmt

public java.lang.String getSqlStmt()

getParameterTypes

public java.lang.Class[] getParameterTypes()

getParametersNumber

public int getParametersNumber()

getParamWhereList

public java.util.Vector getParamWhereList()

getParamList

public java.util.Vector getParamList()

toString

public java.lang.String toString()

getMethodIndex

public int getMethodIndex()

getResEjbSelectField

public org.objectweb.medor.api.Field getResEjbSelectField()
Return the Medor field of tuple result of an ejbSelect method


getTupleGetter

public java.lang.String getTupleGetter()
Returns:
Return the Medor get method name of the tuple result of an ejbSelect method

isTupleGetterPrimitive

public boolean isTupleGetterPrimitive()
Returns:
Return true is the return type of the Medor getter method of the tuple result of an ejbSelect method is a primitive type

getTupleGetterObjectClass

public java.lang.String getTupleGetterObjectClass()
Returns:
Return the associated class of the Medor getter method of the tuple result of an ejbSelect method when it's a primtive type

getArrayObjectParameters

public java.lang.String getArrayObjectParameters()
Gets an empty array if no parameters and return an array of objects of the parameters if any

Returns:
array of objects