Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.model.jdo » [javadoc | source]
org.apache.jdo.model.jdo
public interface: JDOModelFactory [javadoc | source]

All Known Implementing Classes:
    JDOModelFactoryImplDynamic, JDOModelFactoryImplCaching

Factory for JDOModel instances. The factory provides a mechanism to cache JDOModel instances per user defined keys.
Method from org.apache.jdo.model.jdo.JDOModelFactory Summary:
createJDOModel,   getJDOModel,   getJDOModel,   removeJDOModel,   removeJDOModel
Method from org.apache.jdo.model.jdo.JDOModelFactory Detail:
 public JDOModel createJDOModel(JavaModel javaModel,
    boolean loadXMLMetadataDefault) throws ModelException
    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 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) throws ModelException
    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) throws ModelException
    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.