Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.impl.model.jdo » [javadoc | source]
org.apache.jdo.impl.model.jdo
public class: JDOModelFactoryImplDynamic [javadoc | source]
java.lang.Object
   org.apache.jdo.impl.model.jdo.JDOModelFactoryImplDynamic

All Implemented Interfaces:
    JDOModelFactory

Direct Known Subclasses:
    JDOModelFactoryImplCaching

Factory for dynamic JDOModel instances. The factory provides a mechanism to cache JDOModel instances per JavaModel instances.

TBD:

Constructor:
 protected JDOModelFactoryImplDynamic() 
Method from org.apache.jdo.impl.model.jdo.JDOModelFactoryImplDynamic Summary:
createJDOModel,   getInstance,   getJDOModel,   getJDOModel,   removeJDOModel,   removeJDOModel
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.impl.model.jdo.JDOModelFactoryImplDynamic Detail:
 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.
 public static JDOModelFactory getInstance() 
    Get an instance of JDOModelFactory.
 public JDOModel getJDOModel(JavaModel javaModel) 
    Returns the JDOModel instance for the specified javaModel.
 public JDOModel getJDOModel(JavaModel javaModel,
    boolean loadXMLMetadataDefault) 
    Returns the JDOModel instance for the specified javaModel. 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.
 public  void removeJDOModel(JDOModel jdoModel) 
    Removes the specified jdoModel from the JDOModel cache. Note, if there are multiple entries in the cache with the specified jdoModel as value, then all of them get removed. The method does not have an effect, if this factory does not have the specified jdoModel.
 public  void removeJDOModel(JavaModel javaModel) 
    Removes the JDOModel for the specified javaModel from the JDOModel cache. The method does not have an effect, if this factory does not have a JDOModel for the the specified javaModel.