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
addInstanceLifecycleListener, close, getConnectionDriverName, getConnectionFactory, getConnectionFactory2, getConnectionFactory2Name, getConnectionFactoryName, getConnectionURL, getConnectionUserName, getDataStoreCache, getDetachAllOnCommit, getIgnoreCache, getMapping, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getPersistenceManager, getPersistenceManager, getProperties, getRestoreValues, getRetainValues, isClosed, removeInstanceLifecycleListener, setConnectionDriverName, setConnectionFactory, setConnectionFactory2, setConnectionFactory2Name, setConnectionFactoryName, setConnectionPassword, setConnectionURL, setConnectionUserName, setDetachAllOnCommit, setIgnoreCache, setMapping, setMultithreaded, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setRestoreValues, setRetainValues, supportedOptions
 

Method Detail

getTranscriberFactory

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

Returns:
A TranscriberFactory particular to a kind of PMF.

getObjectIdClass

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

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

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

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.


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.