|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jdo.impl.model.jdo.JDOModelFactoryImplDynamic
Factory for dynamic JDOModel instances. The factory provides a mechanism to cache JDOModel instances per JavaModel instances.
TBD:
| Field Summary | |
private static JDOModelFactory |
jdoModelFactory
The singleton JDOModelFactory instance. |
private java.util.Map |
modelCache
Map of JDOModel instances, key is the JavaModel getJDOModel(JavaModel javaModel) |
| Constructor Summary | |
protected |
JDOModelFactoryImplDynamic()
Creates new JDOModelFactory. |
| Method Summary | |
JDOModel |
createJDOModel(JavaModel javaModel,
boolean loadXMLMetadataDefault)
Creates a new empty JDOModel instance. |
static JDOModelFactory |
getInstance()
Get an instance of JDOModelFactory. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.Map modelCache
getJDOModel(JavaModel javaModel)
private static JDOModelFactory jdoModelFactory
| Constructor Detail |
protected JDOModelFactoryImplDynamic()
getInstance() should be used.
| Method Detail |
public static JDOModelFactory getInstance()
public JDOModel createJDOModel(JavaModel javaModel,
boolean loadXMLMetadataDefault)
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.
createJDOModel in interface JDOModelFactoryloadXMLMetadataDefault - the default setting for whether to
read XML metatdata in JDOModel's methods for JDOClass creation.public JDOModel getJDOModel(JavaModel javaModel)
getJDOModel in interface JDOModelFactoryjavaModel - the javaModel used to cache the returned JDOModel
instance.
public JDOModel getJDOModel(JavaModel javaModel,
boolean loadXMLMetadataDefault)
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.
getJDOModel in interface JDOModelFactoryloadXMLMetadataDefault - the default setting for whether to
read XML metatdata in JDOModel's methods for JDOClass creation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||