|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.kodo.runtime.PersistenceManagerFactoryImpl
Abstract implementation of the PersistenceManagerFactory
that must be subclassed for a specific runtime.
| Constructor Summary | |
|---|---|
PersistenceManagerFactoryImpl(Configuration config)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
API extension. |
protected void |
configurePersistenceManager(PersistenceManager pm)
Configures the given PersistenceManager with the current factory option settings. |
protected PersistenceManagerImpl |
findPersistenceManager(String user,
String pass)
Find a pooled PersistenceManager, or return null if none. |
protected void |
freeze()
Freezes the configuration of this factory. |
Configuration |
getConfiguration()
Return the configuration for this factory. |
String |
getConnectionDriverName()
|
Object |
getConnectionFactory()
|
Object |
getConnectionFactory2()
|
String |
getConnectionFactory2Name()
|
String |
getConnectionFactoryName()
|
String |
getConnectionPassword()
|
String |
getConnectionURL()
|
String |
getConnectionUserName()
|
boolean |
getIgnoreCache()
|
int |
getMaxPool()
|
int |
getMinPool()
|
int |
getMsWait()
|
boolean |
getMultithreaded()
|
boolean |
getNontransactionalRead()
|
boolean |
getNontransactionalWrite()
|
boolean |
getOptimistic()
|
PersistenceManager |
getPersistenceManager()
|
PersistenceManager |
getPersistenceManager(String user,
String pass)
|
Properties |
getProperties()
|
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
|
abstract String |
getVersionInformation()
Return a string describing this factory version, such as "JDBC Enterprise". |
protected void |
lock()
Synchronizes on an internal lock. |
protected Object |
newConnectionFactory()
Instantiate a connection factory from the current configuration. |
protected PersistenceManagerImpl |
newPersistenceManager(String user,
String pass,
StoreManager sm)
Return a PersistenceManager configured with the proper settings. |
protected abstract StoreManager |
newStoreManager()
Return a new StoreManager for this runtime. |
protected void |
readObject()
Subclasses must implement the readObject method
for deserialization to read their non-transient data (or use
defaultReadObject) and then invoke this method, which will
perform the necessary setup. |
protected void |
removeUnsupportedOptions(Collection options)
Remove the options not supported by this runtime from the given collection. |
void |
setConnectionDriverName(String val)
|
void |
setConnectionFactory(Object val)
|
void |
setConnectionFactory2(Object val)
|
void |
setConnectionFactory2Name(String val)
|
void |
setConnectionFactoryName(String val)
|
void |
setConnectionPassword(String val)
|
void |
setConnectionURL(String val)
|
void |
setConnectionUserName(String val)
|
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. |
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 |
public PersistenceManagerFactoryImpl(Configuration config)
| Method Detail |
public Configuration getConfiguration()
public PersistenceManager getPersistenceManager()
getPersistenceManager in interface PersistenceManagerFactory
public PersistenceManager getPersistenceManager(String user,
String pass)
getPersistenceManager in interface PersistenceManagerFactorypublic Properties getProperties()
getProperties in interface PersistenceManagerFactorypublic Collection supportedOptions()
supportedOptions in interface PersistenceManagerFactorypublic String getConnectionUserName()
getConnectionUserName in interface PersistenceManagerFactorypublic void setConnectionUserName(String val)
setConnectionUserName in interface PersistenceManagerFactorypublic String getConnectionPassword()
public void setConnectionPassword(String val)
setConnectionPassword in interface PersistenceManagerFactorypublic String getConnectionURL()
getConnectionURL in interface PersistenceManagerFactorypublic void setConnectionURL(String val)
setConnectionURL in interface PersistenceManagerFactorypublic String getConnectionDriverName()
getConnectionDriverName in interface PersistenceManagerFactorypublic void setConnectionDriverName(String val)
setConnectionDriverName in interface PersistenceManagerFactorypublic String getConnectionFactoryName()
getConnectionFactoryName in interface PersistenceManagerFactorypublic void setConnectionFactoryName(String val)
setConnectionFactoryName in interface PersistenceManagerFactorypublic Object getConnectionFactory()
getConnectionFactory in interface PersistenceManagerFactorypublic void setConnectionFactory(Object val)
setConnectionFactory in interface PersistenceManagerFactorypublic String getConnectionFactory2Name()
getConnectionFactory2Name in interface PersistenceManagerFactorypublic void setConnectionFactory2Name(String val)
setConnectionFactory2Name in interface PersistenceManagerFactorypublic Object getConnectionFactory2()
getConnectionFactory2 in interface PersistenceManagerFactorypublic void setConnectionFactory2(Object val)
setConnectionFactory2 in interface PersistenceManagerFactorypublic boolean getOptimistic()
getOptimistic in interface PersistenceManagerFactorypublic void setOptimistic(boolean val)
setOptimistic in interface PersistenceManagerFactorypublic boolean getRetainValues()
getRetainValues in interface PersistenceManagerFactorypublic void setRetainValues(boolean val)
setRetainValues in interface PersistenceManagerFactorypublic boolean getRestoreValues()
getRestoreValues in interface PersistenceManagerFactorypublic void setRestoreValues(boolean val)
setRestoreValues in interface PersistenceManagerFactorypublic boolean getNontransactionalRead()
getNontransactionalRead in interface PersistenceManagerFactorypublic void setNontransactionalRead(boolean val)
setNontransactionalRead in interface PersistenceManagerFactorypublic boolean getNontransactionalWrite()
getNontransactionalWrite in interface PersistenceManagerFactorypublic void setNontransactionalWrite(boolean val)
setNontransactionalWrite in interface PersistenceManagerFactorypublic boolean getIgnoreCache()
getIgnoreCache in interface PersistenceManagerFactorypublic void setIgnoreCache(boolean val)
setIgnoreCache in interface PersistenceManagerFactorypublic boolean getMultithreaded()
getMultithreaded in interface PersistenceManagerFactorypublic void setMultithreaded(boolean val)
setMultithreaded in interface PersistenceManagerFactorypublic int getMaxPool()
getMaxPool in interface PersistenceManagerFactorypublic void setMaxPool(int val)
setMaxPool in interface PersistenceManagerFactorypublic int getMinPool()
getMinPool in interface PersistenceManagerFactorypublic void setMinPool(int val)
setMinPool in interface PersistenceManagerFactorypublic int getMsWait()
getMsWait in interface PersistenceManagerFactorypublic void setMsWait(int val)
setMsWait in interface PersistenceManagerFactorypublic abstract String getVersionInformation()
protected abstract StoreManager newStoreManager()
newPersistenceManager(java.lang.String, java.lang.String, com.solarmetric.kodo.runtime.StoreManager) method. However, the
PersistenceManagerImpl.getStoreManager() method will return the
original native store manager.protected Object newConnectionFactory()
protected PersistenceManagerImpl findPersistenceManager(String user,
String pass)
newStoreManager() so that factory subclasses implementing
pooling can return a matching manager before a new StoreManager
is created.
protected PersistenceManagerImpl newPersistenceManager(String user,
String pass,
StoreManager sm)
protected void setup()
protected void readObject()
readObject method
for deserialization to read their non-transient data (or use
defaultReadObject) and then invoke this method, which will
perform the necessary setup.protected void removeUnsupportedOptions(Collection options)
protected void configurePersistenceManager(PersistenceManager pm)
protected void lock()
unlock()
in a finally clause of the same method.protected void unlock()
protected void freeze()
public void close()
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||