org.apache.jdo.model.jdo
Interface JDOModelFactory

All Known Implementing Classes:
JDOModelFactoryImplDynamic

public interface JDOModelFactory

Factory for JDOModel instances. The factory provides a mechanism to cache JDOModel instances per user defined keys.

Author:
Michael Bouschen

Method Summary
 JDOModel createJDOModel(JavaModel javaModel, boolean loadXMLMetadataDefault)
          Creates a new empty JDOModel instance.
 JDOModel getJDOModel(JavaModel javaModel)
          Returns the JDOModel instance for the specified JavaModel.
 JDOModel getJDOModel(JavaModel javaModel, boolean loadXMLMetadataDefault)
          Returns the JDOModel instance for the specified JavaModel.
 

Method Detail

createJDOModel

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.

Parameters:
loadXMLMetadataDefault - the default setting for whether to read XML metatdata in JDOModel's methods for JDOClass creation.
Throws:
ModelException - if impossible

getJDOModel

public JDOModel getJDOModel(JavaModel javaModel)
Returns the JDOModel instance for the specified JavaModel.

Parameters:
javaModel - the javaModel used to cache the returned JDOModel instance.

getJDOModel

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.

Parameters:
loadXMLMetadataDefault - the default setting for whether to read XML metatdata in JDOModel's methods for JDOClass creation.


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