|
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
|
+--com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
PersistenceManagerFactory type for use with the JDBC runtime.
| Constructor Summary | |
JDBCPersistenceManagerFactory()
Default constructor. |
|
JDBCPersistenceManagerFactory(InputStream propertyStream)
Create a factory that will access the data store with a Properties instantiated from the specified
InputStream. |
|
JDBCPersistenceManagerFactory(JDBCConfiguration conf)
Construct the factory with the given option settings. |
|
JDBCPersistenceManagerFactory(Properties props)
Create a factory that will access the data store with the specified Properties. |
|
| Method Summary | |
void |
close()
API extension. |
protected void |
configurePersistenceManager(PersistenceManagerImpl pm)
Register the PersistenceManagerImpl as being opened from this factory, and flush any pending class registrations if necessary. |
int |
countDeferredRegistrations()
|
static Object |
createConnectionFactory(JDBCConfiguration conf)
|
static Object |
createConnectionFactory(JDBCConfiguration conf,
boolean connectionFactory2)
|
static Object |
createConnectionFactory(JDBCConfiguration conf,
ClassResolver resolver,
boolean connectionFactory2)
|
protected void |
finalize()
|
(package private) boolean |
flushDeferredRegistrations()
Flush the cache of registrations that we have deferred until later. |
Collection |
getDeferredRegistrations()
|
protected JDBCConfiguration |
getJDBCConfiguration()
|
static PersistenceManagerFactory |
getPersistenceManagerFactory(Properties p)
Factory method for constructing a PersistenceManagerFactory from properties. |
Set |
getRegisteredClasses()
|
org.apache.commons.logging.Log |
getRuntimeLog()
|
String |
getVersionInformation()
Return a string describing this factory version, such as "JDBC Enterprise". |
protected Object |
newConnectionFactory(boolean connectionFactory2)
Instantiate a connection factory from the current configuration. |
StoreManager |
newStoreManager()
Return a new StoreManager for this runtime. |
protected boolean |
registerClass(Class clazz)
Register a new persistent class. |
protected boolean |
registerClassInternal(Class clazz)
|
protected void |
removeUnsupportedOptions(Collection options)
Remove the options not supported by this runtime from the given collection. |
protected void |
setup()
Setup transient state used by this factory based on the current configuration, which will subsequenty be locked down. |
protected void |
setupImplHelper()
|
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public JDBCPersistenceManagerFactory()
public JDBCPersistenceManagerFactory(JDBCConfiguration conf)
public JDBCPersistenceManagerFactory(Properties props)
throws IOException
Properties.
public JDBCPersistenceManagerFactory(InputStream propertyStream)
throws IOException
Properties instantiated from the specified
InputStream.| Method Detail |
public static PersistenceManagerFactory getPersistenceManagerFactory(Properties p)
JDOHelper.getPersistenceManagerFactory(java.util.Properties).public org.apache.commons.logging.Log getRuntimeLog()
public String getVersionInformation()
PersistenceManagerFactoryImplgetVersionInformation in class PersistenceManagerFactoryImplpublic StoreManager newStoreManager()
PersistenceManagerFactoryImplPersistenceManagerFactoryImpl.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.newStoreManager in class PersistenceManagerFactoryImplprotected JDBCConfiguration getJDBCConfiguration()
protected Object newConnectionFactory(boolean connectionFactory2)
PersistenceManagerFactoryImplnewConnectionFactory in class PersistenceManagerFactoryImplcom.solarmetric.kodo.runtime.PersistenceManagerFactoryImplconnectionFactory2 - if false, use the normal
connection factory. If true, the use connection factory 2,
which is the non-transactional connection factory.public static Object createConnectionFactory(JDBCConfiguration conf)
public static Object createConnectionFactory(JDBCConfiguration conf,
boolean connectionFactory2)
public static Object createConnectionFactory(JDBCConfiguration conf,
ClassResolver resolver,
boolean connectionFactory2)
protected void setup()
PersistenceManagerFactoryImplsetup in class PersistenceManagerFactoryImplprotected void setupImplHelper()
public Collection getDeferredRegistrations()
protected boolean registerClass(Class clazz)
Special consideration needs to be taken to prevent
recursive registrations, since parsing the metadata
can result in new classes being loaded, and thus
firing the JDOImplHelper's register class listeners,
and thus referencing a partially parsed class metadata file. In
order to prevent this, if we are currently in the process of
registering classes, any invocation of registerClass will defer the
registration of those classes until later. The
flushDeferredRegistrations method will be called
to flush any classes that have been deferred.
Furthermore, special considerations need to be taken for performance, since paring metadata files can be a slow process. If classes are loaded in multiple separate ClassLoader's, excessive metadata parsing can occur. Thus, we defer registration in the following cases:
protected boolean registerClassInternal(Class clazz)
public int countDeferredRegistrations()
boolean flushDeferredRegistrations()
protected void removeUnsupportedOptions(Collection options)
PersistenceManagerFactoryImplremoveUnsupportedOptions in class PersistenceManagerFactoryImplpublic void close()
PersistenceManagerFactoryImplclose in class PersistenceManagerFactoryImpl
protected void finalize()
throws Throwable
finalize in class Objectprotected final void configurePersistenceManager(PersistenceManagerImpl pm)
configurePersistenceManager in class PersistenceManagerFactoryImplPersistenceManagerFactoryImpl#configurePersistenceManager(PersistenceManager)public Set getRegisteredClasses()
|
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 | ||||||||