org.objectweb.jonas_ejb.genic.VcField Class Reference

List of all members.

Public Member Functions

 VcField (String mName, Class fType, FieldDesc fd, boolean isCmp1)
String getName ()
String getNameUpperFirst ()
String getGetterName ()
String getSetterName ()
String getTypeName ()
boolean isPrimaryKey ()
String getDefaultValue ()
String getSqlTypeName ()
String getSqlGetMethod ()
String getSqlSetMethod ()
boolean hasNotPrimitiveType ()
boolean hasBigIntegerType ()
boolean hasSerializableType ()
boolean hasJavaLangTypeExceptString ()
String getJormTypeName ()
boolean isMustBeConvert ()
String getConvertClassName ()
String toString ()

Package Functions

 VcField (Field field, FieldDesc fd)
 VcField (FieldDesc fd)

Detailed Description

This class is the "Velocity context" for a container managed persistence bean's field used in the Velocity Template.
Author:
Helene Joanin : Initial developer

Definition at line 43 of file VcField.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.genic.VcField.VcField String  mName,
Class  fType,
FieldDesc  fd,
boolean  isCmp1
 

VcField constructor

Parameters:
mName name of the cmp field
fType type of the cmp field
fd field descriptor of the cmp field
isCmp1 true if it's a cmp version 1 field, false if it's a cmp version 2 field.

Definition at line 119 of file VcField.java.

References org.objectweb.jonas_ejb.deployment.api.FieldDesc.isPrimaryKey().

Here is the call graph for this function:

org.objectweb.jonas_ejb.genic.VcField.VcField Field  field,
FieldDesc  fd
[package]
 

VcField contructor for cmp field version 1

Parameters:
field java field descriptor of the cmp field
fd field descriptor of the cmp field

Definition at line 166 of file VcField.java.

org.objectweb.jonas_ejb.genic.VcField.VcField FieldDesc  fd  )  [package]
 

VcField onstructor for cmp field version 2

Parameters:
fd field descriptor of the cmp field

Definition at line 174 of file VcField.java.

References org.objectweb.jonas_ejb.deployment.api.FieldDesc.getFieldType(), and org.objectweb.jonas_ejb.deployment.api.FieldDesc.getName().

Here is the call graph for this function:


Member Function Documentation

String org.objectweb.jonas_ejb.genic.VcField.getConvertClassName  ) 
 

Returns:
the class name of for the convertion between the memory representation and the storage representation for the cmp field

Definition at line 299 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getDefaultValue  ) 
 

Returns:
the string representation of the java default value for the cmp field (ie "0 "for int, "null" for object ...)

Definition at line 226 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getGetterName  ) 
 

Returns:
the name of the getter method of the cmp field

Definition at line 195 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getJormTypeName  ) 
 

Returns:
the JORM type name of the cmp field

Definition at line 285 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getName  ) 
 

Returns:
the name of the cmp field

Definition at line 181 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getNameUpperFirst  ) 
 

Returns:
the name, with the first letter capitalized, of the cmp field

Definition at line 188 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getSetterName  ) 
 

Returns:
the name of the setter method of the cmp field

Definition at line 202 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getSqlGetMethod  ) 
 

Returns:
the SQL getter method name for the cmp field

Definition at line 240 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getSqlSetMethod  ) 
 

Returns:
the SQL setter method name for the cmp field

Definition at line 247 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getSqlTypeName  ) 
 

Returns:
the SQL type name of the cmp field

Definition at line 233 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.getTypeName  ) 
 

Returns:
the type name of the cmp field

Definition at line 209 of file VcField.java.

boolean org.objectweb.jonas_ejb.genic.VcField.hasBigIntegerType  ) 
 

Returns:
true if the type of the cmp field is java.math.BigInteger

Definition at line 261 of file VcField.java.

boolean org.objectweb.jonas_ejb.genic.VcField.hasJavaLangTypeExceptString  ) 
 

Returns:
true if the type of the cmp type is a java.lag type except java.lang.String

Definition at line 275 of file VcField.java.

boolean org.objectweb.jonas_ejb.genic.VcField.hasNotPrimitiveType  ) 
 

Returns:
true if the type of the cmp field is not a java primitive type

Definition at line 254 of file VcField.java.

boolean org.objectweb.jonas_ejb.genic.VcField.hasSerializableType  ) 
 

Returns:
true of the type of the cmp field is Serializable

Definition at line 268 of file VcField.java.

boolean org.objectweb.jonas_ejb.genic.VcField.isMustBeConvert  ) 
 

Returns:
true if a conversion must be dome between the memory representation and the storage representation for the cmp field

Definition at line 292 of file VcField.java.

boolean org.objectweb.jonas_ejb.genic.VcField.isPrimaryKey  ) 
 

Returns:
true if the cmp field composes the primary key

Definition at line 216 of file VcField.java.

String org.objectweb.jonas_ejb.genic.VcField.toString  ) 
 

Returns:
a string representation of the VcField for debug use

Definition at line 306 of file VcField.java.


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