|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.lib.Mapper
org.objectweb.jorm.mapper.rdb.lib.MapperJDBC
This mapper supports JDBC connection management.
Field Summary |
Fields inherited from class org.objectweb.jorm.lib.Mapper |
logger, loggerFactory |
Fields inherited from interface org.objectweb.jorm.api.PMapper |
JORMPROPFILE, PBINDINGAPPENDER, PCLASSMAPPINGAPPENDER |
Constructor Summary | |
MapperJDBC()
|
|
MapperJDBC(JormConfigurator jc)
|
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 relational DB. |
java.lang.Object |
getConnection(java.lang.Object ctxt)
Allocates a connection for accessing the underlying relational DB. |
java.lang.Object |
getConnection(java.lang.Object connectionContext,
java.lang.Object user)
Allocates a connection for accessing the underlying DS knowing additional context information. |
java.lang.Object |
getConnectionFactory()
Returns the connection factory associated to this mapper. |
RdbAdapter |
getRdbAdapter()
|
void |
setConnectionFactory(java.lang.Object cf)
Assigns the information about the JDBC connection to be allocated through this mapper. |
void |
start()
Starts this mapper. |
Methods inherited from class org.objectweb.jorm.lib.Mapper |
addDependency, addMapperEventListener, classDefined, clean, clear, cn2mn, createGenClassMapping, declareClass, equals, getJormConfigurator, getLogger, getLoggerFactory, getMappedClasses, getMapperName, getMetaInfoManager, getPMapCluster, getPMapClusters, getPMappingStructuresManager, getPrefetchCache, getPTypeSpace, hashCode, lookup, map, map, map, removeMapperEventListener, scheduleEvent, setDTDLocations, setJormConfigurator, setLogger, setLoggerFactory, setMapperName, setPathsToPdFiles, setPMapper, setPrefetchCache, stop, unmap |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jorm.api.PMapper |
addMapperEventListener, clean, cn2mn, createGenClassMapping, getMappedClasses, getMapperName, getMetaInfoManager, getPMappingStructuresManager, getPrefetchCache, getPTypeSpace, lookup, map, map, map, removeMapperEventListener, setDTDLocations, setMapperName, setPathsToPdFiles, setPrefetchCache, stop, unmap |
Methods inherited from interface org.objectweb.jorm.api.PMappingStructuresManager |
addDependency, classDefined, clear, declareClass, getPMapCluster, getPMapClusters, setLogger, setPMapper |
Constructor Detail |
public MapperJDBC() throws PException
public MapperJDBC(JormConfigurator jc)
Method Detail |
public void closeConnection(java.lang.Object conn) throws PException
closeConnection
in interface PMapper
conn
- The concerned JDBC connection.
PException
public java.lang.Object getConnection() throws PException
getConnection
in interface PMapper
PException
public java.lang.Object getConnection(java.lang.Object ctxt) throws PException
getConnection
in interface PMapper
ctxt
- The connection specification for the connection to be allocated.
PException
public java.lang.Object getConnection(java.lang.Object connectionContext, java.lang.Object user) throws PException
PMapper
getConnection
in interface PMapper
connectionContext
- Context information used to allocate the connection.user
- is the identifier of the connection user (working set
or transaction id).
PException
public void setConnectionFactory(java.lang.Object cf) throws PException
setConnectionFactory
in interface PMapper
PExceptionProtocol
- It is raised if a connection factory
has already been assigned.
PException
public java.lang.Object getConnectionFactory()
getConnectionFactory
in interface PMapper
public void start() throws PException
PMapper
start
in interface PMapper
start
in class Mapper
PException
public RdbAdapter getRdbAdapter()
getRdbAdapter
in interface PMapperRdb
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |