org.apache.jdo.pm
Interface PersistenceManagerFactoryInternal

All Superinterfaces:
javax.jdo.PersistenceManagerFactory, java.io.Serializable
All Known Implementing Classes:
PersistenceManagerFactoryImpl

public interface PersistenceManagerFactoryInternal
extends javax.jdo.PersistenceManagerFactory

JDORI-internal PMF.

Author:
Dave Bristor

Method Summary
 java.lang.Class getObjectIdClass(java.lang.Class cls)
          In order for the application to construct instance of the ObjectId class it needs to know the class being used by the JDO implementation.
 StoreManager getStoreManager(javax.jdo.PersistenceManager pm)
          Provides a StoreManager that is ready to accept operations on it such as insert, etc.
 java.lang.Class getTrackedClass(java.lang.Class type)
          Returns store-specific mapping between Java classes and tracked SCO classes supported by this PMF.
 TranscriberFactory getTranscriberFactory()
          Provides the factory which can make Transcribers for this PMF.
 void releaseStoreManager(javax.jdo.PersistenceManager pm)
          Allows the PMF to release any resources associated with the given PM's store manager.
 
Methods inherited from interface javax.jdo.PersistenceManagerFactory
close, getConnectionDriverName, getConnectionFactory, getConnectionFactory2, getConnectionFactory2Name, getConnectionFactoryName, getConnectionURL, getConnectionUserName, getIgnoreCache, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getPersistenceManager, getPersistenceManager, getProperties, getRestoreValues, getRetainValues, setConnectionDriverName, setConnectionFactory, setConnectionFactory2, setConnectionFactory2Name, setConnectionFactoryName, setConnectionPassword, setConnectionURL, setConnectionUserName, setIgnoreCache, setMultithreaded, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setRestoreValues, setRetainValues, supportedOptions
 

Method Detail

getTranscriberFactory

public TranscriberFactory getTranscriberFactory()
Provides the factory which can make Transcribers for this PMF.

Returns:
A TranscriberFactory particular to a kind of PMF.

getObjectIdClass

public java.lang.Class getObjectIdClass(java.lang.Class cls)
In order for the application to construct instance of the ObjectId class it needs to know the class being used by the JDO implementation.

Parameters:
cls - the PersistenceCapable Class
Returns:
the Class of the ObjectId of the parameter

getStoreManager

public StoreManager getStoreManager(javax.jdo.PersistenceManager pm)
Provides a StoreManager that is ready to accept operations on it such as insert, etc.

Parameters:
pm - PersistenceManager that is requesting a StoreManager.

releaseStoreManager

public void releaseStoreManager(javax.jdo.PersistenceManager pm)
Allows the PMF to release any resources associated with the given PM's store manager.

Parameters:
pm - PersistenceManager that is releasing a StoreManager.

getTrackedClass

public java.lang.Class getTrackedClass(java.lang.Class type)
Returns store-specific mapping between Java classes and tracked SCO classes supported by this PMF. Called by PersistenceManager inside requests for a new tracked instance.

Parameters:
type - Class to find mapping for.
Returns:
A Class for the tracked SCO or null if this Java class is not supported as tracked SCO.