org.objectweb.jorm.runtime
Class MapperJCA

java.lang.Object
  |
  +--org.objectweb.jorm.runtime.Mapper
        |
        +--org.objectweb.jorm.runtime.MapperJCA
All Implemented Interfaces:
Loggable, PMapper

public class MapperJCA
extends Mapper

This mapper supports JCA CCI connection management.

Author:
P. D?chamboux

Fields inherited from interface org.objectweb.jorm.api.PMapper
PBINDINGAPPENDER, PCLASSMAPPINGAPPENDER
 
Constructor Summary
MapperJCA()
           
 
Method Summary
 void closeConnection(java.lang.Object conn)
          Closes the given connection which has been allocated previously using getConnection.
 java.lang.Object getConnection()
          Allocates a connection for accessing the underlying DS.
 java.lang.Object getConnection(java.lang.Object ctxt)
          Allocates a connection for accessing the underlying DS knowing additional context information.
 java.lang.Object getConnectionFactory()
          Returns the connection factory associated to this mapper.
 void setConnectionFactory(java.lang.Object cf)
          Assigns a connection factory to this mapper.
 
Methods inherited from class org.objectweb.jorm.runtime.Mapper
cn2mn, equals, getLogger, getLoggerFactory, getMapperName, getMappingName, getMetaInfoManager, getPTypeSpace, hashCode, lookup, map, map, map, setLogger, setLoggerFactory, setMapperName, setMappingName, setMetaInfoManager, setParser, setPTypeSpace, unmap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapperJCA

public MapperJCA()
Method Detail

closeConnection

public void closeConnection(java.lang.Object conn)
                     throws PException
Closes the given connection which has been allocated previously using getConnection.
Parameters:
conn - The concerned connection.

getConnection

public java.lang.Object getConnection()
                               throws PException
Allocates a connection for accessing the underlying DS.

getConnection

public java.lang.Object getConnection(java.lang.Object ctxt)
                               throws PException
Allocates a connection for accessing the underlying DS knowing additional context information.
Parameters:
ctxt - Context information used to allocate the connection.

setConnectionFactory

public void setConnectionFactory(java.lang.Object cf)
                          throws PException
Assigns a connection factory to this mapper.
Throws:
PExceptionProtocol - It is raised if a connection factory has already been assigned.

getConnectionFactory

public java.lang.Object getConnectionFactory()
Returns the connection factory associated to this mapper.