|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.runtime.PersistenceManagerFactoryImpl
Abstract implementation of the PersistenceManagerFactory
that must be subclassed for a specific runtime.
| Constructor Summary | |
protected |
PersistenceManagerFactoryImpl(com.solarmetric.rd.kodo.conf.JDOConfiguration config)
Constructor. |
| Method Summary | |
void |
close()
API extension. |
protected void |
configurePersistenceManager(javax.jdo.PersistenceManager pm)
Configures the given PersistenceManager with the current factory option settings. |
protected com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl |
findPersistenceManager(java.lang.String user,
java.lang.String pass,
boolean managed)
Find a pooled PersistenceManager, or return null if none. |
protected com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl |
findTransactionalPersistenceManager(java.lang.String user,
java.lang.String pass)
Find a managed runtime PersistenceManager associated with the current transaction, or returns null if none. |
com.solarmetric.rd.kodo.conf.JDOConfiguration |
getConfiguration()
Return the configuration for this factory. |
java.lang.String |
getConnectionDriverName()
|
java.lang.Object |
getConnectionFactory()
|
java.lang.Object |
getConnectionFactory2()
|
java.lang.String |
getConnectionFactory2Name()
|
java.lang.String |
getConnectionFactoryName()
|
java.lang.String |
getConnectionPassword()
|
java.lang.String |
getConnectionURL()
|
java.lang.String |
getConnectionUserName()
|
boolean |
getIgnoreCache()
|
int |
getMaxPool()
|
int |
getMinPool()
|
int |
getMsWait()
|
boolean |
getMultithreaded()
|
boolean |
getNontransactionalRead()
|
boolean |
getNontransactionalWrite()
|
boolean |
getOptimistic()
|
javax.jdo.PersistenceManager |
getPersistenceManager()
|
javax.jdo.PersistenceManager |
getPersistenceManager(boolean managed)
API extension. |
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.String user,
java.lang.String pass)
|
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.String user,
java.lang.String pass,
boolean managed)
API extension. |
protected static com.solarmetric.rd.kodo.runtime.PersistenceManagerFactoryImpl |
getPersistenceManagerFactory(com.solarmetric.rd.kodo.conf.JDOConfiguration conf)
Return the pooled factory matching the given configuration, or null if none. |
abstract java.lang.String |
getPlatform()
Return the platform this persistence manager is running on, such as 'Kodo JDO JDBC Edition: XXX Database". |
java.util.Properties |
getProperties()
|
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
|
protected void |
lock()
Synchronizes on an internal lock. |
protected com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl |
newPersistenceManager(java.lang.String user,
java.lang.String pass,
com.solarmetric.rd.kodo.runtime.StoreManager sm,
boolean managed)
Return a PersistenceManager configured with the proper settings. |
protected abstract com.solarmetric.rd.kodo.runtime.StoreManager |
newStoreManager()
Return a new StoreManager for this runtime. |
protected void |
pool()
Add the factory to the pool. |
protected java.lang.Object |
readResolve()
Replaces the factory with this JVMs pooled version if it exists. |
protected void |
removeUnsupportedOptions(java.util.Collection options)
Remove the options not supported by this runtime from the given collection. |
void |
setConnectionDriverName(java.lang.String val)
|
void |
setConnectionFactory(java.lang.Object val)
|
void |
setConnectionFactory2(java.lang.Object val)
|
void |
setConnectionFactory2Name(java.lang.String val)
|
void |
setConnectionFactoryName(java.lang.String val)
|
void |
setConnectionPassword(java.lang.String val)
|
void |
setConnectionURL(java.lang.String val)
|
void |
setConnectionUserName(java.lang.String val)
|
protected void |
setFrozen(boolean frozen)
Freezes the configuration of this factory. |
void |
setIgnoreCache(boolean val)
|
void |
setMaxPool(int val)
|
void |
setMinPool(int val)
|
void |
setMsWait(int val)
|
void |
setMultithreaded(boolean val)
|
void |
setNontransactionalRead(boolean val)
|
void |
setNontransactionalWrite(boolean val)
|
void |
setOptimistic(boolean val)
|
void |
setRestoreValues(boolean val)
|
void |
setRetainValues(boolean val)
|
protected void |
setup()
Setup transient state used by this factory based on the current configuration, which will subsequenty be locked down. |
java.util.Collection |
supportedOptions()
|
protected void |
unlock()
Releases the internal lock. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected PersistenceManagerFactoryImpl(com.solarmetric.rd.kodo.conf.JDOConfiguration config)
| Method Detail |
protected static com.solarmetric.rd.kodo.runtime.PersistenceManagerFactoryImpl getPersistenceManagerFactory(com.solarmetric.rd.kodo.conf.JDOConfiguration conf)
public com.solarmetric.rd.kodo.conf.JDOConfiguration getConfiguration()
public javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.PersistenceManager getPersistenceManager(java.lang.String user,
java.lang.String pass)
getPersistenceManager in interface javax.jdo.PersistenceManagerFactorypublic javax.jdo.PersistenceManager getPersistenceManager(boolean managed)
public javax.jdo.PersistenceManager getPersistenceManager(java.lang.String user,
java.lang.String pass,
boolean managed)
public void close()
public java.util.Properties getProperties()
getProperties in interface javax.jdo.PersistenceManagerFactorypublic java.util.Collection supportedOptions()
supportedOptions in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionUserName()
getConnectionUserName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionUserName(java.lang.String val)
setConnectionUserName in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionPassword()
public void setConnectionPassword(java.lang.String val)
setConnectionPassword in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionURL()
getConnectionURL in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionURL(java.lang.String val)
setConnectionURL in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionDriverName()
getConnectionDriverName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionDriverName(java.lang.String val)
setConnectionDriverName in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionFactoryName()
getConnectionFactoryName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactoryName(java.lang.String val)
setConnectionFactoryName in interface javax.jdo.PersistenceManagerFactorypublic java.lang.Object getConnectionFactory()
getConnectionFactory in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory(java.lang.Object val)
setConnectionFactory in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionFactory2Name()
getConnectionFactory2Name in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory2Name(java.lang.String val)
setConnectionFactory2Name in interface javax.jdo.PersistenceManagerFactorypublic java.lang.Object getConnectionFactory2()
getConnectionFactory2 in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory2(java.lang.Object val)
setConnectionFactory2 in interface javax.jdo.PersistenceManagerFactorypublic boolean getOptimistic()
getOptimistic in interface javax.jdo.PersistenceManagerFactorypublic void setOptimistic(boolean val)
setOptimistic in interface javax.jdo.PersistenceManagerFactorypublic boolean getRetainValues()
getRetainValues in interface javax.jdo.PersistenceManagerFactorypublic void setRetainValues(boolean val)
setRetainValues in interface javax.jdo.PersistenceManagerFactorypublic boolean getRestoreValues()
getRestoreValues in interface javax.jdo.PersistenceManagerFactorypublic void setRestoreValues(boolean val)
setRestoreValues in interface javax.jdo.PersistenceManagerFactorypublic boolean getNontransactionalRead()
getNontransactionalRead in interface javax.jdo.PersistenceManagerFactorypublic void setNontransactionalRead(boolean val)
setNontransactionalRead in interface javax.jdo.PersistenceManagerFactorypublic boolean getNontransactionalWrite()
getNontransactionalWrite in interface javax.jdo.PersistenceManagerFactorypublic void setNontransactionalWrite(boolean val)
setNontransactionalWrite in interface javax.jdo.PersistenceManagerFactorypublic boolean getIgnoreCache()
getIgnoreCache in interface javax.jdo.PersistenceManagerFactorypublic void setIgnoreCache(boolean val)
setIgnoreCache in interface javax.jdo.PersistenceManagerFactorypublic boolean getMultithreaded()
getMultithreaded in interface javax.jdo.PersistenceManagerFactorypublic void setMultithreaded(boolean val)
setMultithreaded in interface javax.jdo.PersistenceManagerFactorypublic int getMaxPool()
getMaxPool in interface javax.jdo.PersistenceManagerFactorypublic void setMaxPool(int val)
setMaxPool in interface javax.jdo.PersistenceManagerFactorypublic int getMinPool()
getMinPool in interface javax.jdo.PersistenceManagerFactorypublic void setMinPool(int val)
setMinPool in interface javax.jdo.PersistenceManagerFactorypublic int getMsWait()
getMsWait in interface javax.jdo.PersistenceManagerFactorypublic void setMsWait(int val)
setMsWait in interface javax.jdo.PersistenceManagerFactory
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic abstract java.lang.String getPlatform()
protected abstract com.solarmetric.rd.kodo.runtime.StoreManager newStoreManager()
newPersistenceManager(java.lang.String, java.lang.String, com.solarmetric.rd.kodo.runtime.StoreManager, boolean) method.
protected com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl findPersistenceManager(java.lang.String user,
java.lang.String pass,
boolean managed)
newStoreManager() so that factory subclasses implementing
pooling can return a matching manager before a new StoreManager
is created.
protected com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl newPersistenceManager(java.lang.String user,
java.lang.String pass,
com.solarmetric.rd.kodo.runtime.StoreManager sm,
boolean managed)
protected void setup()
protected void removeUnsupportedOptions(java.util.Collection options)
protected com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl findTransactionalPersistenceManager(java.lang.String user,
java.lang.String pass)
protected void configurePersistenceManager(javax.jdo.PersistenceManager pm)
protected void lock()
unlock()
in a finally clause of the same method.
protected void unlock()
protected void pool()
protected void setFrozen(boolean frozen)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||