| java.lang.Object org.objectweb.jonas_ejb.container.jorm.MapperManager
MapperManager | public class MapperManager (Code) | | 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 |
Method Summary | |
public PMapper | addMapper(PMapper m, JContainer c, Object cf) 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) Parameters: c - the container using the mapper (never null) Parameters: cf - the connection factory represented by the mapper (never null) the mapper associated to the given container and the givenconnection factory. | public static MapperManager | getInstance() It retrieves the unique instance of MapperManager. | public JormConfigurator | getJormConfigurator() | public Logger | getLogger() | public PMapper | 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 Parameters: cf - is the connection factory (datasource for example) representedby the expected mapper. |
MapperManager | protected MapperManager()(Code) | | |
addMapper | public PMapper addMapper(PMapper m, JContainer c, Object cf) throws PException(Code) | | 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) Parameters: c - the container using the mapper (never null) Parameters: cf - the connection factory represented by the mapper (never null) the mapper associated to the given container and the givenconnection factory. The returned mapper can be different from the mapperinstance given in parameter if another similar mapper (same containerand same connection factory) is already registered. throws: PException - if it is not possible to start the mapper. |
getInstance | public static MapperManager getInstance()(Code) | | It retrieves the unique instance of MapperManager.
|
getJormConfigurator | public JormConfigurator getJormConfigurator()(Code) | | |
getLogger | public Logger getLogger()(Code) | | |
getMapper | public PMapper getMapper(JContainer c, Object cf)(Code) | | Lookup a jorm mapper for a given container and a given connection factory
Parameters: c - is the container asking the mapper Parameters: cf - is the connection factory (datasource for example) representedby the expected mapper. the PMapper instance if it exists, otherwise a null value. |
|
|