org.objectweb.speedo.mapper.lib
Class DelegatePMapper
java.lang.Object
org.objectweb.speedo.mapper.lib.DelegatePMapper
- public class DelegatePMapper
- extends java.lang.Object
This class is an implementation of the PMapper interface delegating all
method to another PMapper, except for the lookup method. In this case the
lookup method is done by the use of the JormFactory. The aim is to always
have the PClassMapping instance. But only the JormFactory is able to build
the PClassMapping instance of a Persistent class.
- Author:
- S.Chassande-Barrioz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatePMapper
public DelegatePMapper(PMapper mapper)
getJormFactory
public JormFactory getJormFactory()
setJormFactory
public void setJormFactory(JormFactory jf)
getMapper
public PMapper getMapper()
setMapper
public void setMapper(PMapper mapper)
getClassLoader
public java.lang.ClassLoader getClassLoader()
setClassLoader
public void setClassLoader(java.lang.ClassLoader classLoader)
lookup
public PClassMapping lookup(java.lang.String s)
setPMapper
public void setPMapper(PMapper pm)
setLogger
public void setLogger(Logger l)
setPrefetchCache
public void setPrefetchCache(PrefetchCache prefetchCache)
throws PException
- Throws:
PException
getPrefetchCache
public PrefetchCache getPrefetchCache()
closeConnection
public void closeConnection(java.lang.Object o)
throws PException
- Throws:
PException
cn2mn
public java.lang.String cn2mn(java.lang.String s)
getConnection
public java.lang.Object getConnection()
throws PException
- Throws:
PException
getConnection
public java.lang.Object getConnection(java.lang.Object o)
throws PException
- Throws:
PException
getConnection
public java.lang.Object getConnection(java.lang.Object connectionContext,
java.lang.Object user)
throws PException
- Throws:
PException
getMapperName
public java.lang.String getMapperName()
getPMappingStructuresManager
public PMappingStructuresManager getPMappingStructuresManager()
map
public void map(PClassMapping pClassMapping)
throws PException
- Throws:
PException
map
public void map(java.lang.Object o,
PClassMapping pClassMapping)
throws PException
- Throws:
PException
map
public void map(java.lang.Object o,
PClassMapping pClassMapping,
boolean b)
throws PException
- Throws:
PException
setConnectionFactory
public void setConnectionFactory(java.lang.Object o)
throws PException
- Throws:
PException
getConnectionFactory
public java.lang.Object getConnectionFactory()
setMapperName
public void setMapperName(java.lang.String s)
getMetaInfoManager
public Manager getMetaInfoManager()
getPTypeSpace
public PTypeSpace getPTypeSpace()
start
public void start()
throws PException
- Throws:
PException
stop
public void stop()
throws PException
- Throws:
PException
unmap
public void unmap(java.lang.String s)
throws PException
- Throws:
PException
addMapperEventListener
public void addMapperEventListener(PMapperListener pMapperListener)
removeMapperEventListener
public void removeMapperEventListener(PMapperListener pMapperListener)
createGenClassMapping
public PClassMapping createGenClassMapping()
throws PException
- Throws:
PException
getPMapCluster
public PMapCluster getPMapCluster(java.lang.String s)
throws PException
- Throws:
PException
getPMapClusters
public java.util.Collection getPMapClusters()
addDependency
public void addDependency(java.lang.String s,
java.lang.String s1)
throws PException
- Throws:
PException
classDefined
public void classDefined(java.lang.String s)
throws PException
- Throws:
PException