|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.Speedo
This class is a client helper which permits to create a new speedo PersistentManagerFactory. Due to the JDO constraint the persistence manager factory implementation must have a public empty contructor. But the use of the fractal component (www.objectweb.org/fractal) needs to use a fractal implementation to initialize components. Then this class is an implementation of the PersistentManagerFactory interface which delegates all calls on a persistent manager factory delegate. The constructor of this class make the components creation and their initialization via Julia (fractal implementation).
Field Summary | |
static java.lang.String |
CONNECTION_POOL_PATH
|
static java.lang.String |
CONNECTION_SPEC_FACTORY
|
static java.lang.String |
JORM_FACTORY_PATH
|
static java.lang.String |
MONOLOG_FACTORY_PATH
|
static java.lang.String |
PM_PATH
|
static java.lang.String |
PRIMITIVE_MAPPER_PATH
|
static java.lang.String |
QUERY_CACHE_PATH
|
Constructor Summary | |
Speedo()
|
|
Speedo(java.util.Properties props)
It creates and initializes a real SpeedoProxyManagerFactory with Julia (Fractal implementation). |
Method Summary | |
void |
bindPM2Thread(ProxyManager pm)
Ask to the PMS to bind a particular PM to the Thread. |
static void |
clearInstances()
|
java.lang.String |
getConnectionDriverName()
|
java.lang.Object |
getConnectionFactory()
|
java.lang.Object |
getConnectionFactory2()
|
java.lang.String |
getConnectionFactory2Name()
|
java.lang.String |
getConnectionFactoryName()
|
java.lang.String |
getConnectionURL()
|
java.lang.String |
getConnectionUserName()
|
PersistenceManagerFactory |
getDelegate()
|
boolean |
getIgnoreCache()
|
int |
getMaxPool()
|
int |
getMinPool()
|
int |
getMsWait()
|
boolean |
getMultithreaded()
|
boolean |
getNontransactionalRead()
|
boolean |
getNontransactionalWrite()
|
boolean |
getOptimistic()
|
PersistenceManager |
getPersistenceManager()
|
PersistenceManager |
getPersistenceManager(java.lang.String s,
java.lang.String s1)
|
static PersistenceManagerFactory |
getPersistenceManagerFactory(java.util.Properties props)
|
ProxyManagerFactory |
getPMFComponent()
|
java.util.Properties |
getProperties()
|
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
|
void |
init(Component speedo,
java.util.Properties pmfProps)
|
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 |
setConnectionDriverName(java.lang.String s)
|
void |
setConnectionFactory(java.lang.Object o)
|
void |
setConnectionFactory2(java.lang.Object o)
|
void |
setConnectionFactory2Name(java.lang.String s)
|
void |
setConnectionFactoryName(java.lang.String s)
|
void |
setConnectionPassword(java.lang.String s)
|
void |
setConnectionURL(java.lang.String s)
|
void |
setConnectionUserName(java.lang.String s)
|
void |
setIgnoreCache(boolean b)
|
void |
setMaxPool(int i)
|
void |
setMinPool(int i)
|
void |
setMsWait(int i)
|
void |
setMultithreaded(boolean b)
|
void |
setNontransactionalRead(boolean b)
|
void |
setNontransactionalWrite(boolean b)
|
void |
setOptimistic(boolean b)
|
void |
setRestoreValues(boolean b)
|
void |
setRetainValues(boolean b)
|
java.util.Collection |
supportedOptions()
|
void |
unbindPM()
It call pms.unbind(this) in order to unbind a ProxyManager managed by this ProxyManagerFactory, from the thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONNECTION_SPEC_FACTORY
public static final java.lang.String QUERY_CACHE_PATH
public static final java.lang.String CONNECTION_POOL_PATH
public static final java.lang.String MONOLOG_FACTORY_PATH
public static final java.lang.String PRIMITIVE_MAPPER_PATH
public static final java.lang.String JORM_FACTORY_PATH
public static final java.lang.String PM_PATH
Constructor Detail |
public Speedo() throws java.lang.Throwable
public Speedo(java.util.Properties props) throws java.lang.Throwable
Method Detail |
public static PersistenceManagerFactory getPersistenceManagerFactory(java.util.Properties props) throws java.lang.Throwable
java.lang.Throwable
public static void clearInstances()
public ProxyManagerFactory getPMFComponent() throws java.lang.Exception
java.lang.Exception
public void init(Component speedo, java.util.Properties pmfProps) throws java.lang.Throwable
java.lang.Throwable
public PersistenceManager getPersistenceManager()
public PersistenceManager getPersistenceManager(java.lang.String s, java.lang.String s1)
public void setConnectionUserName(java.lang.String s)
public java.lang.String getConnectionUserName()
public void setConnectionPassword(java.lang.String s)
public void setConnectionURL(java.lang.String s)
public java.lang.String getConnectionURL()
public void setConnectionDriverName(java.lang.String s)
public java.lang.String getConnectionDriverName()
public void setConnectionFactoryName(java.lang.String s)
public java.lang.String getConnectionFactoryName()
public void setConnectionFactory(java.lang.Object o)
public java.lang.Object getConnectionFactory()
public void setConnectionFactory2Name(java.lang.String s)
public java.lang.String getConnectionFactory2Name()
public void setConnectionFactory2(java.lang.Object o)
public java.lang.Object getConnectionFactory2()
public void setMultithreaded(boolean b)
public boolean getMultithreaded()
public void setOptimistic(boolean b)
public boolean getOptimistic()
public void setRetainValues(boolean b)
public boolean getRetainValues()
public void setRestoreValues(boolean b)
public boolean getRestoreValues()
public void setNontransactionalRead(boolean b)
public boolean getNontransactionalRead()
public void setNontransactionalWrite(boolean b)
public boolean getNontransactionalWrite()
public void setIgnoreCache(boolean b)
public boolean getIgnoreCache()
public int getMaxPool()
public void setMaxPool(int i)
public int getMinPool()
public void setMinPool(int i)
public int getMsWait()
public void setMsWait(int i)
public java.util.Properties getProperties()
public java.util.Collection supportedOptions()
public PersistenceManagerFactory getDelegate()
public ProxyManager lookup()
ProxyManagerFactory
lookup
in interface ProxyManagerFactory
public void unbindPM()
ProxyManagerFactory
unbindPM
in interface ProxyManagerFactory
public void bindPM2Thread(ProxyManager pm)
ProxyManagerFactory
bindPM2Thread
in interface ProxyManagerFactory
pm
- public void proxyManagerClosed(ProxyManager pr)
ProxyManagerFactory
proxyManagerClosed
in interface ProxyManagerFactory
pr
- the PM closed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |