|
||||||||||||
| 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).
| Nested Class Summary |
|---|
| Nested classes inherited from class javax.jdo.datastore.DataStoreCache |
|---|
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache |
| Field Summary | |
|---|---|
static java.lang.String |
CONNECTION_POOL_PATH
|
static java.lang.String |
CONNECTION_SPEC_FACTORY
|
static java.lang.String |
DEPENDENCY_GRAPH_PATH
|
static java.lang.String |
HTML_JMX_AGENT_PATH
|
static java.lang.String |
JMX_AGENT_PATH
|
static java.lang.String |
JORM_FACTORY_PATH
|
static java.lang.String |
MEMORY_CACHE_PATH
|
static java.lang.String |
MONOLOG_FACTORY_PATH
|
static java.lang.String |
PM_POOL_PATH
|
static java.lang.String |
PMF_PATH
|
static java.lang.String |
PRIMITIVE_MAPPER_PATH
|
static java.lang.String |
QUERY_CACHE_PATH
|
static java.lang.String |
QUERY_MANAGER
|
| Constructor Summary | |
|---|---|
Speedo()
|
|
Speedo(java.util.Map props)
It creates and initializes a real SpeedoProxyManagerFactory with Julia (Fractal implementation). |
|
| Method Summary | |
|---|---|
void |
addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener arg0,
java.lang.Class[] arg1)
|
void |
bindPM2Thread(ProxyManager pm)
Ask to the PMS to bind a particular PM to the Thread. |
static void |
clearInstances()
|
void |
close()
|
void |
evict(java.lang.Object arg0)
|
void |
evictAll()
|
void |
evictAll(java.lang.Class arg0,
boolean arg1)
|
void |
evictAll(java.util.Collection arg0)
|
void |
evictAll(java.lang.Object[] arg0)
|
java.lang.Object |
getConcurrencyManagerComponent()
|
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()
|
javax.jdo.datastore.DataStoreCache |
getDataStoreCache()
|
javax.jdo.PersistenceManagerFactory |
getDelegate()
|
org.objectweb.perseus.dependency.api.DependencyGraph |
getDependencyGraph()
|
boolean |
getIgnoreCache()
|
java.lang.String |
getMapping()
|
static byte |
getMappingStructure(java.lang.String strval)
|
static java.lang.String |
getMappingStructureString(byte b)
|
java.util.Collection |
getMemoryCacheEntries()
|
boolean |
getMultithreaded()
|
boolean |
getNontransactionalRead()
|
boolean |
getNontransactionalWrite()
|
boolean |
getOptimistic()
|
javax.jdo.PersistenceManager |
getPersistenceManager()
|
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.String s,
java.lang.String s1)
|
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(java.util.Map m)
|
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(java.util.Properties props)
|
ProxyManagerFactory |
getPMFComponent()
|
java.util.Properties |
getProperties()
|
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
|
SequenceManager |
getSequenceManager()
Get the sequence manager associated to the pmf. |
void |
init(org.objectweb.fractal.api.Component speedo,
java.util.Map pmfProps)
|
boolean |
isClosed()
|
ProxyManager |
lookup()
Finds in the associated ProxyManagerSwitch a ProxyManager managed by the ProxyManagerFactory. |
void |
pin(java.lang.Object arg0)
|
void |
pinAll(java.lang.Class arg0,
boolean arg1)
|
void |
pinAll(java.util.Collection arg0)
|
void |
pinAll(java.lang.Object[] arg0)
|
void |
proxyManagerClosed(ProxyManager pr)
Indicates when a PM has been closed. |
void |
removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener arg0)
|
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 |
setMapping(java.lang.String arg0)
|
void |
setMultithreaded(boolean b)
|
void |
setNontransactionalRead(boolean b)
|
void |
setNontransactionalWrite(boolean b)
|
void |
setOptimistic(boolean b)
|
void |
setRestoreValues(boolean b)
|
void |
setRetainValues(boolean b)
|
void |
setSequenceManager(SequenceManager sequenceManager)
Set the sequence manager. |
java.util.Collection |
supportedOptions()
|
void |
unbindPM()
It call pms.unbind(this) in order to unbind a ProxyManager managed by this ProxyManagerFactory, from the thread. |
void |
unpin(java.lang.Object arg0)
|
void |
unpinAll(java.lang.Class arg0,
boolean arg1)
|
void |
unpinAll(java.util.Collection arg0)
|
void |
unpinAll(java.lang.Object[] arg0)
|
| 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 PM_POOL_PATH
public static final java.lang.String MEMORY_CACHE_PATH
public static final java.lang.String DEPENDENCY_GRAPH_PATH
public static final java.lang.String QUERY_CACHE_PATH
public static final java.lang.String QUERY_MANAGER
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 PMF_PATH
public static final java.lang.String JMX_AGENT_PATH
public static final java.lang.String HTML_JMX_AGENT_PATH
| Constructor Detail |
public Speedo()
throws java.lang.Throwable
public Speedo(java.util.Map props)
throws java.lang.Throwable
| Method Detail |
public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(java.util.Properties props)
throws java.lang.Throwable
java.lang.Throwable
public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(java.util.Map m)
throws java.lang.Throwable
java.lang.Throwablepublic static void clearInstances()
public ProxyManagerFactory getPMFComponent()
throws java.lang.Exception
java.lang.Exception
public void init(org.objectweb.fractal.api.Component speedo,
java.util.Map pmfProps)
throws java.lang.Throwable
java.lang.Throwablepublic static java.lang.String getMappingStructureString(byte b)
public static byte getMappingStructure(java.lang.String strval)
public java.lang.Object getConcurrencyManagerComponent()
throws java.lang.Exception
java.lang.Exception
public org.objectweb.perseus.dependency.api.DependencyGraph getDependencyGraph()
throws java.lang.Exception
java.lang.Exception
public java.util.Collection getMemoryCacheEntries()
throws java.lang.Exception
java.lang.Exceptionpublic javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.PersistenceManager getPersistenceManager(java.lang.String s,
java.lang.String s1)
getPersistenceManager in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionUserName(java.lang.String s)
setConnectionUserName in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionUserName()
getConnectionUserName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionPassword(java.lang.String s)
setConnectionPassword in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionURL(java.lang.String s)
setConnectionURL in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionURL()
getConnectionURL in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionDriverName(java.lang.String s)
setConnectionDriverName in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionDriverName()
getConnectionDriverName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactoryName(java.lang.String s)
setConnectionFactoryName in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionFactoryName()
getConnectionFactoryName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory(java.lang.Object o)
setConnectionFactory in interface javax.jdo.PersistenceManagerFactorypublic java.lang.Object getConnectionFactory()
getConnectionFactory in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory2Name(java.lang.String s)
setConnectionFactory2Name in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionFactory2Name()
getConnectionFactory2Name in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory2(java.lang.Object o)
setConnectionFactory2 in interface javax.jdo.PersistenceManagerFactorypublic java.lang.Object getConnectionFactory2()
getConnectionFactory2 in interface javax.jdo.PersistenceManagerFactorypublic void setMultithreaded(boolean b)
setMultithreaded in interface javax.jdo.PersistenceManagerFactorypublic boolean getMultithreaded()
getMultithreaded in interface javax.jdo.PersistenceManagerFactorypublic void setOptimistic(boolean b)
setOptimistic in interface javax.jdo.PersistenceManagerFactorypublic boolean getOptimistic()
getOptimistic in interface javax.jdo.PersistenceManagerFactorypublic void setRetainValues(boolean b)
setRetainValues in interface javax.jdo.PersistenceManagerFactorypublic boolean getRetainValues()
getRetainValues in interface javax.jdo.PersistenceManagerFactorypublic void setRestoreValues(boolean b)
setRestoreValues in interface javax.jdo.PersistenceManagerFactorypublic boolean getRestoreValues()
getRestoreValues in interface javax.jdo.PersistenceManagerFactorypublic void setNontransactionalRead(boolean b)
setNontransactionalRead in interface javax.jdo.PersistenceManagerFactorypublic boolean getNontransactionalRead()
getNontransactionalRead in interface javax.jdo.PersistenceManagerFactorypublic void setNontransactionalWrite(boolean b)
setNontransactionalWrite in interface javax.jdo.PersistenceManagerFactorypublic boolean getNontransactionalWrite()
getNontransactionalWrite in interface javax.jdo.PersistenceManagerFactorypublic void setIgnoreCache(boolean b)
setIgnoreCache in interface javax.jdo.PersistenceManagerFactorypublic boolean getIgnoreCache()
getIgnoreCache in interface javax.jdo.PersistenceManagerFactorypublic java.util.Properties getProperties()
getProperties in interface javax.jdo.PersistenceManagerFactorypublic java.util.Collection supportedOptions()
supportedOptions in interface javax.jdo.PersistenceManagerFactorypublic javax.jdo.PersistenceManagerFactory getDelegate()
public ProxyManager lookup()
ProxyManagerFactory
lookup in interface ProxyManagerFactorypublic SequenceManager getSequenceManager()
ProxyManagerFactory
getSequenceManager in interface ProxyManagerFactorypublic void setSequenceManager(SequenceManager sequenceManager)
ProxyManagerFactory
setSequenceManager in interface ProxyManagerFactorypublic void unbindPM()
ProxyManagerFactory
unbindPM in interface ProxyManagerFactorypublic void bindPM2Thread(ProxyManager pm)
ProxyManagerFactory
bindPM2Thread in interface ProxyManagerFactorypm - public void proxyManagerClosed(ProxyManager pr)
ProxyManagerFactory
proxyManagerClosed in interface ProxyManagerFactorypr - the closed PM.public void close()
close in interface javax.jdo.PersistenceManagerFactorypublic javax.jdo.datastore.DataStoreCache getDataStoreCache()
getDataStoreCache in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getMapping()
getMapping in interface javax.jdo.PersistenceManagerFactorypublic boolean isClosed()
isClosed in interface javax.jdo.PersistenceManagerFactorypublic void setMapping(java.lang.String arg0)
setMapping in interface javax.jdo.PersistenceManagerFactorypublic void evict(java.lang.Object arg0)
evict in interface javax.jdo.datastore.DataStoreCachepublic void evictAll()
evictAll in interface javax.jdo.datastore.DataStoreCache
public void evictAll(java.lang.Class arg0,
boolean arg1)
evictAll in interface javax.jdo.datastore.DataStoreCachepublic void evictAll(java.util.Collection arg0)
evictAll in interface javax.jdo.datastore.DataStoreCachepublic void evictAll(java.lang.Object[] arg0)
evictAll in interface javax.jdo.datastore.DataStoreCachepublic void pin(java.lang.Object arg0)
pin in interface javax.jdo.datastore.DataStoreCache
public void pinAll(java.lang.Class arg0,
boolean arg1)
pinAll in interface javax.jdo.datastore.DataStoreCachepublic void pinAll(java.util.Collection arg0)
pinAll in interface javax.jdo.datastore.DataStoreCachepublic void pinAll(java.lang.Object[] arg0)
pinAll in interface javax.jdo.datastore.DataStoreCachepublic void unpin(java.lang.Object arg0)
unpin in interface javax.jdo.datastore.DataStoreCache
public void unpinAll(java.lang.Class arg0,
boolean arg1)
unpinAll in interface javax.jdo.datastore.DataStoreCachepublic void unpinAll(java.util.Collection arg0)
unpinAll in interface javax.jdo.datastore.DataStoreCachepublic void unpinAll(java.lang.Object[] arg0)
unpinAll in interface javax.jdo.datastore.DataStoreCache
public void addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener arg0,
java.lang.Class[] arg1)
addInstanceLifecycleListener in interface javax.jdo.PersistenceManagerFactorypublic void removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener arg0)
removeInstanceLifecycleListener in interface javax.jdo.PersistenceManagerFactory
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||