org.objectweb.jonas_ejb.container.jorm.MapperManager Class Reference

Collaboration diagram for org.objectweb.jonas_ejb.container.jorm.MapperManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

PMapper getMapper (JContainer c, Object cf)
PMapper addMapper (PMapper m, JContainer c, Object cf) throws PException

Static Public Member Functions

MapperManager getInstance ()

Detailed Description

This class manages Jorm mappers. A mapper can be registered for each data source (connection factory) used in each EJB container. The Mapper manager provides also the JormConfigurator instance used to configure Jorm.

Author:
Sebastien Chassande-Barrioz

Definition at line 58 of file MapperManager.java.


Member Function Documentation

PMapper org.objectweb.jonas_ejb.container.jorm.MapperManager.addMapper PMapper  m,
JContainer  c,
Object  cf
throws PException
 

Register and start PMapper for a container and a connection factory if another mapper is not registered with the same container and the same connection factory.

Parameters:
m the mapper to register (never null)
c the container using the mapper (never null)
cf the connection factory represented by the mapper (never null)
Returns:
the mapper associated to the given container and the given connection factory. The returned mapper can be different from the mapper instance given in parameter if another similar mapper (same container and same connection factory) is already registered.
Exceptions:
PException if it is not possible to start the mapper.

Definition at line 137 of file MapperManager.java.

MapperManager org.objectweb.jonas_ejb.container.jorm.MapperManager.getInstance  )  [static]
 

It retrieves the unique instance of MapperManager.

Definition at line 68 of file MapperManager.java.

PMapper org.objectweb.jonas_ejb.container.jorm.MapperManager.getMapper JContainer  c,
Object  cf
 

Lookup a jorm mapper for a given container and a given connection factory

Parameters:
c is the container asking the mapper
cf is the connection factory (datasource for example) represented by the expected mapper.
Returns:
the PMapper instance if it exists, otherwise a null value.

Definition at line 119 of file MapperManager.java.


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