|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas_ejb.deployment.api.MethodDesc
Class to hold meta-information related to bean and home methods.
Field Summary | |
protected static java.lang.String[] |
APPLY_TO
|
static int |
APPLY_TO_BEAN
|
static int |
APPLY_TO_BEAN_METHOD
|
static int |
APPLY_TO_BEAN_METHOD_NAME
|
static int |
APPLY_TO_CLASS
|
static int |
APPLY_TO_CLASS_METHOD
|
static int |
APPLY_TO_CLASS_METHOD_NAME
|
static int |
APPLY_TO_NOTHING
|
protected BeanDesc |
beanDesc
|
static int |
TX_MANDATORY
|
static int |
TX_NEVER
|
static int |
TX_NOT_SET
Set of constants for method transaction attribute |
static int |
TX_NOT_SUPPORTED
|
static int |
TX_REQUIRED
|
static int |
TX_REQUIRES_NEW
|
static int |
TX_SUPPORTS
|
Constructor Summary | |
MethodDesc(BeanDesc beanDesc,
java.lang.reflect.Method meth,
int index)
constructor to be used by parent node |
Method Summary | |
BeanDesc |
getBeanDesc()
get the parent node |
int |
getIndex()
get a unique index of the method for the bean |
java.lang.reflect.Method |
getMethod()
return the method to which the meta-information applies |
java.lang.String[] |
getRoleName()
String representation of the roles which can execute the method |
int |
getTxAttribute()
Get the container transaction attribute that match the method |
java.lang.String |
getTxAttributeName()
String representation of the transactionnal attribute |
static java.lang.String |
getTxAttributeName(int value)
String representation of the transactionnal attribute |
int |
getTxAttributeStatus()
Get the container transaction attribute that match the method |
boolean |
isFindByPrimaryKey()
access if the method is findByPrimaryKey |
static boolean |
isFindByPrimaryKey(java.lang.reflect.Method meth)
access if a method is findByPrimaryKey |
boolean |
isFinder()
access if the method is a finder |
static boolean |
isFinder(java.lang.reflect.Method meth)
access if a method is a finder |
boolean |
isSelect()
access if the method is a select |
static boolean |
isSelect(java.lang.reflect.Method meth)
access if a method is a select |
int |
matchPattern(java.lang.Class pclass,
java.lang.String mName,
org.objectweb.jonas_ejb.deployment.xml.MethodParams patternMethodParams)
Evaluate method pattern maching as defined in the EJB specifications |
static int |
matchPattern(java.lang.reflect.Method meth,
java.lang.Class pclass,
java.lang.String mName,
org.objectweb.jonas_ejb.deployment.xml.MethodParams patternMethodParams)
Get the status of applicability for a given pattern to a method |
static java.lang.String |
methodElementToString(org.objectweb.jonas_ejb.deployment.xml.Method m)
String representation of the given element |
protected static java.lang.String |
methodElementToString(org.objectweb.jonas_ejb.deployment.xml.MethodIntf intf,
org.objectweb.jonas_ejb.deployment.xml.MethodName name,
org.objectweb.jonas_ejb.deployment.xml.MethodParams params)
get a String representation of a method from it's XML representation |
void |
setIndex(int idx)
|
java.lang.String |
toString()
String representation of the object for test purpose |
static java.lang.String |
toString(java.lang.reflect.Method m)
get a String representation of a method from the reflection object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TX_NOT_SET
public static final int TX_NOT_SUPPORTED
public static final int TX_REQUIRED
public static final int TX_SUPPORTS
public static final int TX_REQUIRES_NEW
public static final int TX_MANDATORY
public static final int TX_NEVER
public static final int APPLY_TO_NOTHING
public static final int APPLY_TO_BEAN
public static final int APPLY_TO_CLASS
public static final int APPLY_TO_BEAN_METHOD_NAME
public static final int APPLY_TO_CLASS_METHOD_NAME
public static final int APPLY_TO_BEAN_METHOD
public static final int APPLY_TO_CLASS_METHOD
protected static final java.lang.String[] APPLY_TO
protected BeanDesc beanDesc
Constructor Detail |
public MethodDesc(BeanDesc beanDesc, java.lang.reflect.Method meth, int index)
Method Detail |
public int getIndex()
public void setIndex(int idx)
public boolean isFinder()
public boolean isFindByPrimaryKey()
findByPrimaryKey
findByPrimaryKey
methodpublic boolean isSelect()
public int matchPattern(java.lang.Class pclass, java.lang.String mName, org.objectweb.jonas_ejb.deployment.xml.MethodParams patternMethodParams)
APPLY_TO_*
values.public static int matchPattern(java.lang.reflect.Method meth, java.lang.Class pclass, java.lang.String mName, org.objectweb.jonas_ejb.deployment.xml.MethodParams patternMethodParams)
public int getTxAttribute()
public int getTxAttributeStatus()
public static java.lang.String getTxAttributeName(int value)
public java.lang.String getTxAttributeName()
public java.lang.String[] getRoleName()
public static java.lang.String methodElementToString(org.objectweb.jonas_ejb.deployment.xml.Method m)
m
- an element protected static java.lang.String methodElementToString(org.objectweb.jonas_ejb.deployment.xml.MethodIntf intf, org.objectweb.jonas_ejb.deployment.xml.MethodName name, org.objectweb.jonas_ejb.deployment.xml.MethodParams params)
public static java.lang.String toString(java.lang.reflect.Method m)
public java.lang.reflect.Method getMethod()
public BeanDesc getBeanDesc()
public static boolean isFinder(java.lang.reflect.Method meth)
public static boolean isFindByPrimaryKey(java.lang.reflect.Method meth)
public static boolean isSelect(java.lang.reflect.Method meth)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |