Java Doc for VcMethod.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas_ejb » genic » 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.genic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas_ejb.genic.VcMethod

VcMethod
public class VcMethod (Code)
This class is the "Velocity context" for a interface method or a bean method used in the Velocity Templates.
author:
   Helene Joanin (Bull) : Initial developer
author:
   Santiago Gala (sgala@hisitech.com) - 00/09/14 - Parameters can be followed by a number in the WHERE clause
author:
   Joe Gittings has proposed to code method signature for security
author:
   in order to avoid same signature for inherited methods.


Field Summary
final static  byteMETHOD_CREATE
    
final static  byteMETHOD_EJB_ACTIVATE
    
final static  byteMETHOD_EJB_CREATE
    
final static  byteMETHOD_EJB_LOAD
    
final static  byteMETHOD_EJB_POST_CREATE
    
final static  byteMETHOD_EJB_REMOVE
    
final static  byteMETHOD_EJB_SELECT_COL
    
final static  byteMETHOD_EJB_SELECT_SET
    
final static  byteMETHOD_EJB_SELECT_SIMPLE
    
final static  byteMETHOD_EJB_SET_ENTITY_CONTEXT
    
final static  byteMETHOD_EJB_STORE
    
final static  byteMETHOD_FINDER_ALL
    
final static  byteMETHOD_FINDER_BY_PK
    
final static  byteMETHOD_FINDER_COL
    
final static  byteMETHOD_FINDER_ENUM
    
final static  byteMETHOD_FINDER_SIMPLE
    
final static  byteMETHOD_REMOVE_HANDLE
    
final static  byteMETHOD_REMOVE_PK
    
final static  byteMETHOD_REMOVE_THIS
    

Constructor Summary
 VcMethod(Method method, MethodDesc methodDesc, BeanDesc dd)
    

Method Summary
public  booleancanThrowCreate()
    
public  StringgetActualParameters()
    
public  StringgetArrayObjectParameters()
    
public  StringgetCapName()
    
public  StringgetDefaultValue()
    
public  StringgetExceptionList()
    
public  StringgetFormalParameters()
    
public  intgetMethodIndex()
     Return the index of the method.
public  StringgetName()
    
public  VectorgetParamList()
    
public  VectorgetParamWhereList()
    
public  Class[]getParameterTypes()
    
public  intgetParametersNumber()
    
public  org.objectweb.medor.api.FieldgetResFieldOfEjbql()
    
public  StringgetReturnType()
    
public  StringgetSecuritySignature()
    
public  StringgetSqlStmt()
    
public  StringgetTupleGetter()
    
public  StringgetTupleGetterObjectClass()
    
public  intgetTxAttribute()
    
public  StringgetWrapperType()
    
public  booleanisCreate()
    
public  booleanisEjbActivate()
    
public  booleanisEjbCreate()
    
public  booleanisEjbLoad()
    
public  booleanisEjbPostCreate()
    
public  booleanisEjbRemove()
    
public  booleanisEjbSelectCol()
    
public  booleanisEjbSelectSet()
    
public  booleanisEjbSelectSimple()
    
public  booleanisEjbSetEntityContext()
    
public  booleanisEjbStore()
    
public  booleanisEjbqlReturnLocalBean()
    
public  booleanisEjbqlReturnRemoteBean()
    
public  booleanisFinderAll()
    
public  booleanisFinderByPk()
    
public  booleanisFinderCol()
    
public  booleanisFinderEnum()
    
public  booleanisFinderSimple()
    
public  booleanisRemoveHandle()
    
public  booleanisRemovePk()
    
public  booleanisRemoveThis()
    
public  booleanisTupleGetterPrimitive()
    
 String[]splitPath(String path)
    
public  StringtoString()
    

Field Detail
METHOD_CREATE
final static byte METHOD_CREATE(Code)
home.create method



METHOD_EJB_ACTIVATE
final static byte METHOD_EJB_ACTIVATE(Code)
bean.ejbActivate() method



METHOD_EJB_CREATE
final static byte METHOD_EJB_CREATE(Code)
bean.ebjCreate method



METHOD_EJB_LOAD
final static byte METHOD_EJB_LOAD(Code)
bean.ejbLoad() method



METHOD_EJB_POST_CREATE
final static byte METHOD_EJB_POST_CREATE(Code)
bean.ejbPostCreate method



METHOD_EJB_REMOVE
final static byte METHOD_EJB_REMOVE(Code)
bean.ejbRemove() method



METHOD_EJB_SELECT_COL
final static byte METHOD_EJB_SELECT_COL(Code)
bean.ejbSelectXxx() method that returns a Collection



METHOD_EJB_SELECT_SET
final static byte METHOD_EJB_SELECT_SET(Code)
bean.ejbSelectXxx() method that returns a Set



METHOD_EJB_SELECT_SIMPLE
final static byte METHOD_EJB_SELECT_SIMPLE(Code)
bean.ejbSelectXxx() method that returns a simple object



METHOD_EJB_SET_ENTITY_CONTEXT
final static byte METHOD_EJB_SET_ENTITY_CONTEXT(Code)
bean.setEntityContext() method



METHOD_EJB_STORE
final static byte METHOD_EJB_STORE(Code)
bean.ejbStore() method



METHOD_FINDER_ALL
final static byte METHOD_FINDER_ALL(Code)
home.findXxx() method



METHOD_FINDER_BY_PK
final static byte METHOD_FINDER_BY_PK(Code)
home.findByPrimaryKey(pk) method



METHOD_FINDER_COL
final static byte METHOD_FINDER_COL(Code)
home.findXxx() method that returns a Collection



METHOD_FINDER_ENUM
final static byte METHOD_FINDER_ENUM(Code)
home.findXxx() method that returns an Enumeration



METHOD_FINDER_SIMPLE
final static byte METHOD_FINDER_SIMPLE(Code)
home.findXxx() method that returns a simple object



METHOD_REMOVE_HANDLE
final static byte METHOD_REMOVE_HANDLE(Code)
home.remove(handle) method



METHOD_REMOVE_PK
final static byte METHOD_REMOVE_PK(Code)
home.remove(primarykey) method



METHOD_REMOVE_THIS
final static byte METHOD_REMOVE_THIS(Code)
EJBObject.remove() method




Constructor Detail
VcMethod
VcMethod(Method method, MethodDesc methodDesc, BeanDesc dd)(Code)
VcMethod constructor
Parameters:
  method - java.lang.reflect.Method method description
Parameters:
  methodDesc - method description
Parameters:
  dd - bean description of the associated bean




Method Detail
canThrowCreate
public boolean canThrowCreate()(Code)
Return true if the method throws the javax.ejb.createException exception



getActualParameters
public String getActualParameters()(Code)
Return the string representation of the actual parameters list (ie "p1, p2")



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



getCapName
public String getCapName()(Code)
Return the name of the method with the first letter capitalized



getDefaultValue
public String getDefaultValue()(Code)
the string representation of the java default value for the cmp field (ie "0 "for int, "null" for object ...)



getExceptionList
public String getExceptionList()(Code)
Return the string representation of the exception list of the method



getFormalParameters
public String getFormalParameters()(Code)
Return the string representation of the formal parameters list (ie "int p1, String p2")



getMethodIndex
public int getMethodIndex()(Code)
Return the index of the method. This is a unique index for each method of a bean.



getName
public String getName()(Code)
Return the name of the method



getParamList
public Vector getParamList()(Code)
Return the VcParam list of the method



getParamWhereList
public Vector getParamWhereList()(Code)
Only for CMP1 finder methods Return the VcParamWhere list of the method



getParameterTypes
public Class[] getParameterTypes()(Code)
Return the Class array of the parameters of the method



getParametersNumber
public int getParametersNumber()(Code)
Return the number of the parameters of the method



getResFieldOfEjbql
public org.objectweb.medor.api.Field getResFieldOfEjbql()(Code)
Only for CMP2 finder/select methods Return the Medor field of tuple result of an Finder/Select method



getReturnType
public String getReturnType()(Code)
Return the name of the return type of the method



getSecuritySignature
public String getSecuritySignature()(Code)
Return the string representation of the security signature of the method



getSqlStmt
public String getSqlStmt()(Code)
Only for CMP1 finder methods Return the string representation of the SQL statement associated to the method



getTupleGetter
public String getTupleGetter()(Code)
Only for CMP2 finder/select methods Return the Medor get method name of the tuple result of an ejbSelect method



getTupleGetterObjectClass
public String getTupleGetterObjectClass()(Code)
Only for CMP2 finder/select methos Return the associated class of the Medor getter method of the tuple result of an ejbSelect method when it's a primtive type



getTxAttribute
public int getTxAttribute()(Code)
Return the transactional attribute associated to the method



getWrapperType
public String getWrapperType()(Code)
the string representation of the wrapper type for the field



isCreate
public boolean isCreate()(Code)
Return true if the method is home.create()



isEjbActivate
public boolean isEjbActivate()(Code)
Return true if the method is bean.ejbActivate()



isEjbCreate
public boolean isEjbCreate()(Code)
Return true if the method is bean.ejbCreate()



isEjbLoad
public boolean isEjbLoad()(Code)
Return true if the method is bean.ejbLoad()



isEjbPostCreate
public boolean isEjbPostCreate()(Code)
Return true if the method is bean.ejbPostCreate()



isEjbRemove
public boolean isEjbRemove()(Code)
Return true if the method is bean.ejbRemove()



isEjbSelectCol
public boolean isEjbSelectCol()(Code)
Return true if the method is an ejbSelect method that returns a Collection



isEjbSelectSet
public boolean isEjbSelectSet()(Code)
Return true if the method is an ejbSelect method that returns a Set



isEjbSelectSimple
public boolean isEjbSelectSimple()(Code)
Return true if the method is an ejbSelect method that returns a unique object



isEjbSetEntityContext
public boolean isEjbSetEntityContext()(Code)
Return true if the method is bean.setEntityContext()



isEjbStore
public boolean isEjbStore()(Code)
Return true if the method is bean.ejbStore()



isEjbqlReturnLocalBean
public boolean isEjbqlReturnLocalBean()(Code)
Return true if the method is a finder/select method that return a local bean



isEjbqlReturnRemoteBean
public boolean isEjbqlReturnRemoteBean()(Code)
Return true if the method is a finder/select method that return a remote bean



isFinderAll
public boolean isFinderAll()(Code)
Return false because we are not able to know if a finder method is a FinderAll method !!



isFinderByPk
public boolean isFinderByPk()(Code)
Return true if the method is the findByPrimaryKey() method



isFinderCol
public boolean isFinderCol()(Code)
Return true if the method is a finder method that returns a Collection



isFinderEnum
public boolean isFinderEnum()(Code)
Return true if the method is a finder method that returns a Enumeration



isFinderSimple
public boolean isFinderSimple()(Code)
Return true if the method is a finder method that returns a unique object



isRemoveHandle
public boolean isRemoveHandle()(Code)
Return true if the method is home.remove(handle);



isRemovePk
public boolean isRemovePk()(Code)
Return true if the method is home.remove(primarykey)



isRemoveThis
public boolean isRemoveThis()(Code)
Return true if the method is EJBObject.remove() method



isTupleGetterPrimitive
public boolean isTupleGetterPrimitive()(Code)
Only for CMP2 finder/select methods Return true is the return type of the Medor getter method of the tuple result of an ejbSelect method is a primitive type



splitPath
String[] splitPath(String path)(Code)
Split a dot separated path into tokens
Parameters:
  path - input path to split Return the string array of the splited token



toString
public String toString()(Code)
Return a string representation of the VcMethod object for debug use



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.