org.apache.jdo.impl.model.jdo.caching
Class JDOModelFactoryImplCaching

java.lang.Object
  extended byorg.apache.jdo.impl.model.jdo.JDOModelFactoryImplDynamic
      extended byorg.apache.jdo.impl.model.jdo.caching.JDOModelFactoryImplCaching
All Implemented Interfaces:
JDOModelFactory

public class JDOModelFactoryImplCaching
extends JDOModelFactoryImplDynamic

Factory for caching JDOModel instances.

Since:
1.1
Version:
1.1
Author:
Michael Bouschen

Field Summary
private static JDOModelFactory jdoModelFactory
          The singleton JDOModelFactory instance.
 
Fields inherited from class org.apache.jdo.impl.model.jdo.JDOModelFactoryImplDynamic
 
Constructor Summary
protected JDOModelFactoryImplCaching()
          Creates new JDOModelFactoryImplCaching.
 
Method Summary
 JDOModel createJDOModel(JavaModel javaModel, boolean loadXMLMetadataDefault)
          Creates a new empty JDOModel instance.
static JDOModelFactory getInstance()
          Get an instance of JDOModelFactoryImpl.
 
Methods inherited from class org.apache.jdo.impl.model.jdo.JDOModelFactoryImplDynamic
getJDOModel, getJDOModel, removeJDOModel, removeJDOModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdoModelFactory

private static JDOModelFactory jdoModelFactory
The singleton JDOModelFactory instance.

Constructor Detail

JDOModelFactoryImplCaching

protected JDOModelFactoryImplCaching()
Creates new JDOModelFactoryImplCaching. This constructor should not be called directly; instead, the singleton access method getInstance() should be used.

Method Detail

getInstance

public static JDOModelFactory getInstance()
Get an instance of JDOModelFactoryImpl.

Returns:
an instance of JDOModelFactoryImpl

createJDOModel

public JDOModel createJDOModel(JavaModel javaModel,
                               boolean loadXMLMetadataDefault)
Creates a new empty JDOModel instance. The returned JDOModel instance uses the specified flag loadXMLMetadataDefault to set the default behavior for the creation of new JDOClass instances using methods JDOModel.createJDOClass(String) and JDOModel.getJDOClass(String) for which the caller doesn't explicitly specify whether to read XML metatdata or not.

Specified by:
createJDOModel in interface JDOModelFactory
Overrides:
createJDOModel in class JDOModelFactoryImplDynamic
Parameters:
loadXMLMetadataDefault - the default setting for whether to read XML metatdata in JDOModel's methods for JDOClass creation.