org.objectweb.jonas_ejb.genic.VContextFactory Class Reference

List of all members.

Static Public Member Functions

VelocityContext create (BeanDesc dd, int srcType) throws GenICException
Boolean pkIsUserClass (String classname)
String toString (VelocityContext vc)

Detailed Description

This class allows to create the Velocity Context used to build the generated sources with the Velocity templates.

Author:
: Helene Joanin (Bull) : Initial developer

Definition at line 57 of file VContextFactory.java.


Member Function Documentation

VelocityContext org.objectweb.jonas_ejb.genic.VContextFactory.create BeanDesc  dd,
int  srcType
throws GenICException [static]
 

Creates the Velocity Context used to build the generated sources with the Velocity templates. There are different types of Velocity Context : HOME, LOCAL_HOME, REMOTE, LOCAL, ENTITY_HANDLE, ENTITY_CMP_JDBC, ...

See also:
Source.java for type definitions.
Parameters:
dd The bean Deployment Descriptor
srcType the type of Velocity Context
Returns:
Return the Velocity Context associated to the gievn bean for the given source to generate
Exceptions:
GenICException in error case

Definition at line 69 of file VContextFactory.java.

References org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getCmpFieldDescIterator(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getCmrFieldName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getDerivedBeanName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbClass(), org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getEjbRelationshipRoleDescIterator(), org.objectweb.jonas_ejb.deployment.api.FieldDesc.getFieldType(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullDerivedBeanName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpHandleName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpHomeName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpLocalHomeName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpLocalName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpRemoteName(), org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.getFullWrpSEHomeName(), org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.getFullWrpServiceEndpointName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getHomeClass(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getLocalClass(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getLocalHomeClass(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getMethodDesc(), org.objectweb.jonas_ejb.deployment.api.FieldDesc.getName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getRemoteClass(), org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.getServiceEndpointClass(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpHandleName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpHomeName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpLocalHomeName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpLocalName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpRemoteName(), org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.getWrpSEHomeName(), org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.getWrpServiceEndpointName(), and org.objectweb.jonas_ejb.deployment.api.FieldDesc.isPrimaryKey().

Here is the call graph for this function:

Boolean org.objectweb.jonas_ejb.genic.VContextFactory.pkIsUserClass String  classname  )  [static]
 

Parameters:
classname name of a class
Returns:
true if the class is a 'user' class, false if it's a java class

Definition at line 600 of file VContextFactory.java.

String org.objectweb.jonas_ejb.genic.VContextFactory.toString VelocityContext  vc  )  [static]
 

Parameters:
vc VelocityContext to trace
Returns:
Return a string representation of the given VelocityContext for debug use

Definition at line 612 of file VContextFactory.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:11:49 2005 for JOnAS by  doxygen 1.3.9.1