org.objectweb.jonas_ejb.lib.JormType Class Reference

List of all members.

Static Public Member Functions

PType getPType (java.lang.Class cl, boolean isPkField)
String getPTypeDef (Class cl, boolean isPkField)
short getCodingType (Class c, boolean isPkField) throws PExceptionNaming
short getCodingType (PType pt) throws PExceptionNaming
short getCodingType (int typeCode) throws PExceptionNaming

Detailed Description

This class contains several methods to manipulate a PType.

Author:
Sebastien Chassande-Barrioz : Initial developper

Helene Joanin

Definition at line 42 of file JormType.java.


Member Function Documentation

short org.objectweb.jonas_ejb.lib.JormType.getCodingType int  typeCode  )  throws PExceptionNaming [static]
 

It converts a type code into a coding type.

Parameters:
a type code of a PType
Returns:
a coding type wich matches to one of CTxxx fields of the PNamingcontext interface.
Exceptions:
PExceptionNaming when the type code specified is not support in the jorm naming.

Definition at line 207 of file JormType.java.

short org.objectweb.jonas_ejb.lib.JormType.getCodingType PType  pt  )  throws PExceptionNaming [static]
 

It converts a PType into a coding type.

Parameters:
a PType
Returns:
a coding type wich matches to one of CTxxx fields of the PNamingcontext interface.
Exceptions:
PExceptionNaming when the PType specified is not support in the jorm naming.

Definition at line 192 of file JormType.java.

short org.objectweb.jonas_ejb.lib.JormType.getCodingType Class  c,
boolean  isPkField
throws PExceptionNaming [static]
 

It retrieves a coding type either a Class

Parameters:
the Class
isPkField true if this is for a field of the primary key, false otherwise
Returns:
a coding type wich matches to one of CTxxx fields of the PNamingcontext interface.
Exceptions:
PExceptionNaming when the class specified is not support in the jorm naming.

Definition at line 177 of file JormType.java.

PType org.objectweb.jonas_ejb.lib.JormType.getPType java.lang.Class  cl,
boolean  isPkField
[static]
 

This method converts a java.lang.Class into a jorm PType.

Parameters:
cl is a java.lang.Class
isPkField true if this is for a field of the primary key, false otherwise
Returns:
The PType which matches the class specified in parameter.

Definition at line 50 of file JormType.java.

String org.objectweb.jonas_ejb.lib.JormType.getPTypeDef Class  cl,
boolean  isPkField
[static]
 

This method converts a java.lang.Class into a jorm PType.

Parameters:
cl is a java.lang.Class
isPkField true if this is for a field of the primary key, false otherwise
Returns:
A String that represents The PType which matches the class.

Definition at line 112 of file JormType.java.


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