org.objectweb.speedo.pm.api
Interface ProxyManagerFactory

All Superinterfaces:
javax.jdo.datastore.DataStoreCache, javax.jdo.PersistenceManagerFactory, java.io.Serializable
All Known Implementing Classes:
Speedo, SpeedoProxyManagerFactory

public interface ProxyManagerFactory
extends javax.jdo.PersistenceManagerFactory, javax.jdo.datastore.DataStoreCache

It manages proxy manager instances.

Author:
S.Chassande-Barrioz

Nested Class Summary
 
Nested classes inherited from class javax.jdo.datastore.DataStoreCache
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache
 
Method Summary
 void bindPM2Thread(ProxyManager pm)
          Ask to the PMS to bind a particular PM to the Thread.
 SequenceManager getSequenceManager()
          Get the sequence manager associated to the pmf.
 ProxyManager lookup()
          Finds in the associated ProxyManagerSwitch a ProxyManager managed by the ProxyManagerFactory.
 void proxyManagerClosed(ProxyManager pr)
          Indicates when a PM has been closed.
 void setSequenceManager(SequenceManager sequenceManager)
          Set the sequence manager.
 void unbindPM()
          It call pms.unbind(this) in order to unbind a ProxyManager managed by this ProxyManagerFactory, from the thread.
 
Methods inherited from interface javax.jdo.PersistenceManagerFactory
addInstanceLifecycleListener, close, getConnectionDriverName, getConnectionFactory, getConnectionFactory2, getConnectionFactory2Name, getConnectionFactoryName, getConnectionURL, getConnectionUserName, getDataStoreCache, getIgnoreCache, getMapping, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getPersistenceManager, getPersistenceManager, getProperties, getRestoreValues, getRetainValues, isClosed, removeInstanceLifecycleListener, setConnectionDriverName, setConnectionFactory, setConnectionFactory2, setConnectionFactory2Name, setConnectionFactoryName, setConnectionPassword, setConnectionURL, setConnectionUserName, setIgnoreCache, setMapping, setMultithreaded, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setRestoreValues, setRetainValues, supportedOptions
 
Methods inherited from interface javax.jdo.datastore.DataStoreCache
evict, evictAll, evictAll, evictAll, evictAll, pin, pinAll, pinAll, pinAll, unpin, unpinAll, unpinAll, unpinAll
 

Method Detail

lookup

public ProxyManager lookup()
Finds in the associated ProxyManagerSwitch a ProxyManager managed by the ProxyManagerFactory.

Returns:
a ProxyManager instance or a null value.

unbindPM

public void unbindPM()
It call pms.unbind(this) in order to unbind a ProxyManager managed by this ProxyManagerFactory, from the thread.


bindPM2Thread

public void bindPM2Thread(ProxyManager pm)
Ask to the PMS to bind a particular PM to the Thread.

Parameters:
pm -

proxyManagerClosed

public void proxyManagerClosed(ProxyManager pr)
Indicates when a PM has been closed.

Parameters:
pr - the closed PM.

getSequenceManager

public SequenceManager getSequenceManager()
Get the sequence manager associated to the pmf.


setSequenceManager

public void setSequenceManager(SequenceManager sequenceManager)
Set the sequence manager.