blob: 8d98c10ba0fed4a7b57a33f0de1a0f803c0e0462 [file] [log] [blame]
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* PersistenceManagerFactoryInternal.java
*
* Create on March 3, 2000
*/
package org.apache.jdo.pm;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import org.apache.jdo.store.StoreManager;
import org.apache.jdo.store.TranscriberFactory;
/**
* JDORI-internal PMF.
*
* @author Dave Bristor
*/
public interface PersistenceManagerFactoryInternal
extends PersistenceManagerFactory {
/**
* Provides the factory which can make Transcribers for this PMF.
* @return A TranscriberFactory particular to a kind of PMF.
*/
public TranscriberFactory getTranscriberFactory();
/**
* In order for the application to construct instance of the ObjectId
* class it needs to know the class being used by the JDO implementation.
* @param cls the PersistenceCapable Class
* @return the Class of the ObjectId of the parameter
*/
public Class getObjectIdClass(Class cls);
/**
* Provides a StoreManager that is ready to accept operations on it such
* as insert, etc.
* @param pm PersistenceManager that is requesting a StoreManager.
*/
public StoreManager getStoreManager(PersistenceManager pm);
/**
* Allows the PMF to release any resources associated with the given PM's
* store manager.
* @param pm PersistenceManager that is releasing a StoreManager.
*/
public void releaseStoreManager(PersistenceManager pm);
/**
* 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.
* @param type Class to find mapping for.
* @return A Class for the tracked SCO or null if this Java class is not
* supported as tracked SCO.
*/
public Class getTrackedClass(Class type);
}