Java Doc for MethodDesc.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas_ejb » deployment » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas_ejb.deployment.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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).


Field Summary
final protected static  String[]APPLY_TO
    
final public static  intAPPLY_TO_BEAN
    
final public static  intAPPLY_TO_BEAN_METHOD
    
final public static  intAPPLY_TO_BEAN_METHOD_NAME
    
final public static  intAPPLY_TO_CLASS
    
final public static  intAPPLY_TO_CLASS_METHOD
    
final public static  intAPPLY_TO_CLASS_METHOD_NAME
    
final public static  intAPPLY_TO_NOTHING
    
final public static  intTX_MANDATORY
    
final public static  intTX_NEVER
    
final public static  intTX_NOT_SET
    
final public static  intTX_NOT_SUPPORTED
    
final public static  intTX_NULL
    
final public static  intTX_REQUIRED
    
final public static  intTX_REQUIRES_NEW
    
final protected static  StringTX_STR_DEFAULT_VALUE
    
final protected static  StringTX_STR_DEFAULT_VALUE_4_MDB
    
final public static  intTX_SUPPORTS
    
protected  BeanDescbeanDesc
    

Constructor Summary
public  MethodDesc(BeanDesc beanDesc, Method meth, Class clDef, int index)
    

Method Summary
 voidaddRoleName(String rn)
    
public  BeanDescgetBeanDesc()
    
public  intgetIndex()
    
public  MethodgetMethod()
    
public  String[]getRoleName()
    
public  intgetTxAttribute()
    
public static  StringgetTxAttributeName(int value)
    
public  StringgetTxAttributeName()
    
public  intgetTxAttributeStatus()
    
public  booleanisEjbSelect()
    
public static  booleanisEjbSelect(Method meth)
    
public  booleanisExcluded()
    
public  booleanisFindByPrimaryKey()
    
public static  booleanisFindByPrimaryKey(Method meth)
    
public  booleanisFinder()
    
public static  booleanisFinder(Method meth)
    
public  intmatchPattern(Class pclass, String mName, MethodParams patternMethodParams)
    
public static  intmatchPattern(java.lang.reflect.Method meth, Class classMeth, Class pclass, String mName, MethodParams patternMethodParams)
    
public static  StringmethodElementToString(org.objectweb.jonas_ejb.deployment.xml.Method m)
    
protected static  StringmethodElementToString(String intf, String name, MethodParams params)
    
 voidoverwriteTxAttribute(String transAttribute, int status)
    
public  voidsetExcluded(boolean excluded)
     Sets the excluded attribute.
public  voidsetIndex(int idx)
    
 voidsetTxAttribute(String transAttribute)
    
public static  StringtoString(Method m)
    
public  StringtoString()
    

Field Detail
APPLY_TO
final protected static String[] APPLY_TO(Code)



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)



beanDesc
protected BeanDesc beanDesc(Code)




Constructor Detail
MethodDesc
public MethodDesc(BeanDesc beanDesc, Method meth, Class clDef, int index)(Code)
constructor to be used by parent node




Method Detail
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



getBeanDesc
public BeanDesc getBeanDesc()(Code)
get the parent node



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
public static String methodElementToString(org.objectweb.jonas_ejb.deployment.xml.Method m)(Code)
String representation of the given element
Parameters:
  m - an element String representation of the given element 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)



setTxAttribute
void setTxAttribute(String transAttribute) throws DeploymentDescException(Code)
Set TxAttribute with given value



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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.