|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| 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 |
addDataCache(Object key,
DataCache cache)
Add cache to this factory's map of caches |
void |
close()
API extension. |
(package private) void |
close(PersistenceManagerImpl pm)
|
void |
closeAll(boolean commit)
API extension. |
protected void |
configurePersistenceManager(PersistenceManagerImpl 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()
|
(package private) Object |
getConnectionFactory(boolean connectionFactory2)
|
Object |
getConnectionFactory2()
|
String |
getConnectionFactory2Name()
|
String |
getConnectionFactoryName()
|
String |
getConnectionPassword()
|
String |
getConnectionURL()
|
String |
getConnectionUserName()
|
protected Map |
getDataCaches()
|
boolean |
getIgnoreCache()
|
int |
getMaxPool()
|
int |
getMinPool()
|
int |
getMsWait()
|
boolean |
getMultithreaded()
|
boolean |
getNontransactionalRead()
|
boolean |
getNontransactionalWrite()
|
protected PersistenceManagerImpl |
getOpenPersistenceManager()
Returns any open PersistenceManagerImpl for this
factory. |
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 Object |
newConnectionFactory(boolean connectionFactory2)
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. |
void |
notifyRemoteCommitListeners(Set adds,
Set updates,
Set deletes)
API extension. |
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. |
void |
registerRemoteCommitListener(RemoteCommitListener listen)
API extension. |
void |
removeRemoteCommitListener(RemoteCommitListener listen)
API extension. |
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. |
protected void |
setUpRemoteCommitProvider()
Invoked by setup() to ensure that this factory's
remote commit provider is configured correctly. |
Collection |
supportedOptions()
|
protected void |
unlock()
Releases the internal lock. |
| Methods inherited from class java.lang.Object |
|
| 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 PersistenceManagerFactoryprotected Map getDataCaches()
public void addDataCache(Object key,
DataCache cache)
cache to this factory's map of cachespublic 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 Object getConnectionFactory2()
getConnectionFactory2 in interface PersistenceManagerFactoryObject getConnectionFactory(boolean connectionFactory2)
public void setConnectionFactory(Object val)
setConnectionFactory in interface PersistenceManagerFactorypublic String getConnectionFactory2Name()
getConnectionFactory2Name in interface PersistenceManagerFactorypublic void setConnectionFactory2Name(String val)
setConnectionFactory2Name 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 final Object newConnectionFactory()
protected Object newConnectionFactory(boolean connectionFactory2)
connectionFactory2 - if false, use the normal
connection factory. If true, the use connection factory 2,
which is the non-transactional connection factory.
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(PersistenceManagerImpl pm)
protected void lock()
unlock()
in a finally clause of the same method.protected void unlock()
protected void freeze()
public void closeAll(boolean commit)
PersistenceManagers
that are currently open.commit - if true, any active transactions will be committed,
otherwise they will be rolled back.protected PersistenceManagerImpl getOpenPersistenceManager()
PersistenceManagerImpl for this
factory. This is used to create a Connector object
for interacting with the data store during class registration.public void close()
void close(PersistenceManagerImpl pm)
public void registerRemoteCommitListener(RemoteCommitListener listen)
public void removeRemoteCommitListener(RemoteCommitListener listen)
RemoteCommitListener
previously associated with this
PersistenceManagerFactoryImpl via the registerRemoteCommitListener(com.solarmetric.kodo.runtime.event.RemoteCommitListener) method. Does nothing if
listen was never registered.
public void notifyRemoteCommitListeners(Set adds,
Set updates,
Set deletes)
RemoteCommitListener
objects associated with this factory of added, updated, and
deleted OIDs.protected void setUpRemoteCommitProvider()
setup() to ensure that this factory's
remote commit provider is configured correctly.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||