| java.lang.Object org.objectweb.jonas_ejb.deployment.api.MethodDesc
All known Subclasses: org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc, org.objectweb.jonas_ejb.deployment.api.MethodJdbcCmp1Desc,
MethodDesc | public class MethodDesc (Code) | | Class to hold meta-information related to bean and home methods.
author: Christophe Ney [cney@batisseurs.com] : Initial developer author: Helene Joanin: fix a bug about select method select method is a bean's method which name begins with ejbSelect, author: (and not home interface method as finder method). |
APPLY_TO_BEAN | final public static int APPLY_TO_BEAN(Code) | | |
APPLY_TO_BEAN_METHOD | final public static int APPLY_TO_BEAN_METHOD(Code) | | |
APPLY_TO_BEAN_METHOD_NAME | final public static int APPLY_TO_BEAN_METHOD_NAME(Code) | | |
APPLY_TO_CLASS | final public static int APPLY_TO_CLASS(Code) | | |
APPLY_TO_CLASS_METHOD | final public static int APPLY_TO_CLASS_METHOD(Code) | | |
APPLY_TO_CLASS_METHOD_NAME | final public static int APPLY_TO_CLASS_METHOD_NAME(Code) | | |
APPLY_TO_NOTHING | final public static int APPLY_TO_NOTHING(Code) | | |
TX_MANDATORY | final public static int TX_MANDATORY(Code) | | |
TX_NEVER | final public static int TX_NEVER(Code) | | |
TX_NOT_SET | final public static int TX_NOT_SET(Code) | | |
TX_NOT_SUPPORTED | final public static int TX_NOT_SUPPORTED(Code) | | |
TX_NULL | final public static int TX_NULL(Code) | | Set of constants for method transaction attribute
|
TX_REQUIRED | final public static int TX_REQUIRED(Code) | | |
TX_REQUIRES_NEW | final public static int TX_REQUIRES_NEW(Code) | | |
TX_STR_DEFAULT_VALUE | final protected static String TX_STR_DEFAULT_VALUE(Code) | | default value for undefined transaction attribute for sessions and entities
|
TX_STR_DEFAULT_VALUE_4_MDB | final protected static String TX_STR_DEFAULT_VALUE_4_MDB(Code) | | default value for undefined transaction attribute for message driven beans
|
TX_SUPPORTS | final public static int TX_SUPPORTS(Code) | | |
MethodDesc | public MethodDesc(BeanDesc beanDesc, Method meth, Class clDef, int index)(Code) | | constructor to be used by parent node
|
addRoleName | void addRoleName(String rn)(Code) | | Add a role name to the role names which can execute the method
Parameters: rn - role name to add |
getIndex | public int getIndex()(Code) | | get a unique index of the method for the bean
|
getMethod | public Method getMethod()(Code) | | return the method to which the meta-information applies
|
getRoleName | public String[] getRoleName()(Code) | | String representation of the roles which can execute the method
Array of String representing the roles which can execute the method |
getTxAttribute | public int getTxAttribute()(Code) | | Get the container transaction attribute that match the method
Constant value within list :TX_NOT_SUPPORTED,TX_REQUIRED,TX_SUPPORTS,TX_REQUIRES_NEW,TX_MANDATORY,TX_NEVER,TX_NOT_SET |
getTxAttributeName | public static String getTxAttributeName(int value)(Code) | | String representation of the transactionnal attribute
String representation of this transactionnal attribute |
getTxAttributeName | public String getTxAttributeName()(Code) | | String representation of the transactionnal attribute
String representation of this transactionnal attribute |
getTxAttributeStatus | public int getTxAttributeStatus()(Code) | | Get the container transaction attribute that match the method
Constant value within list :APPLY_TO_NOTHING, APPLY_TO_BEAN, APPLY_TO_CLASS, APPLY_TO_BEAN_METHOD_NAME,APPLY_TO_CLASS_METHOD_NAME, APPLY_TO_BEAN_METHOD, APPLY_TO_CLASS_METHOD |
isEjbSelect | public boolean isEjbSelect()(Code) | | access if the method is a select
true for select methods |
isEjbSelect | public static boolean isEjbSelect(Method meth)(Code) | | access if a method is a select
|
isExcluded | public boolean isExcluded()(Code) | | true if this method is excluded (in DD), else false |
isFindByPrimaryKey | public boolean isFindByPrimaryKey()(Code) | | access if the method is findByPrimaryKey
true for the findByPrimaryKey method |
isFindByPrimaryKey | public static boolean isFindByPrimaryKey(Method meth)(Code) | | access if a method is findByPrimaryKey
|
isFinder | public boolean isFinder()(Code) | | access if the method is a finder
true for finder methods |
isFinder | public static boolean isFinder(Method meth)(Code) | | access if a method is a finder
|
matchPattern | public int matchPattern(Class pclass, String mName, MethodParams patternMethodParams)(Code) | | Evaluate method pattern maching as defined in the EJB specifications
one of the APPLY_TO_* values. |
matchPattern | public static int matchPattern(java.lang.reflect.Method meth, Class classMeth, Class pclass, String mName, MethodParams patternMethodParams)(Code) | | Get the status of applicability for a given pattern to a method
status of applicability APPLY_TO_NOTHING,APPLY_TO_BEAN,APPLY_TO_CLASS,APPLY_TO_METHOD_NAME,APPLY_TO_METHOD |
methodElementToString | protected static String methodElementToString(String intf, String name, MethodParams params)(Code) | | get a String representation of a method from it's XML representation
|
overwriteTxAttribute | void overwriteTxAttribute(String transAttribute, int status) throws DeploymentDescException(Code) | | Overwrite TxAttribute
Parameters: transAttribute - new value for txAttribute Parameters: status - applicability of given transAttribute parameter |
setExcluded | public void setExcluded(boolean excluded)(Code) | | Sets the excluded attribute.
Parameters: excluded - true of false |
setIndex | public void setIndex(int idx)(Code) | | |
toString | public static String toString(Method m)(Code) | | get a String representation of a method from the reflection object
|
toString | public String toString()(Code) | | String representation of the object for test purpose
String representation of this object |
|
|