javax.jdo.JDOHelper

Link to the class in the SVN repository: JDOHelper.java

What this Class Does

This class contains utility methods, and in particular factory methods to create the PersistenceManagerFactory.

Call Stack for JDOHelper.getPersistenceManagerFactory

Wonder what methods call JDOHelper.getPersistenceManagerFactory(Map, Map, ClassLoader)? Here they are, but I've only included the calls made by the test code that resides in the same JDO sub-project. For example, no calls made by the reference implementation or other JDO sub-projects are included here. I took the time to make this up to help me get familiar with the code.

It sure would be nice if Netbeans had an extension to the "Find Usages" command which displayed all the possible call stacks (e.g. the complete call chain) of a particular method or member selected. I often have to answer the question "What are all the call stacks for this member or method?" But I digress.... here are the call stacks for javax.jdo.JDOHelper.getPersistenceManagerFactory(Map, Map, ClassLoader):

JDOHelper.getPersistenceManagerFactory(Map, Map, ClassLoader)

        JDOHelper.getPersistenceManagerFactory(Map overrides, String name, ClassLoader resourceLoader, ClassLoader pmfLoader)

                JDOHelper.getPersistenceManagerFactory()
                JDOHelper.getPersistenceManagerFactory(ClassLoader pmfClassLoader)

                        JDOHelperConfigTest.testNegative00_EmptyJDOConfigXML()
                        JDOHelperConfigTest.testNegative01_NoPersistenceUnitsDefined()
                        JDOHelperConfigTest.testNegative02_DuplicateAnonymousPersistenceUnitsInSameConfig()
                        JDOHelperConfigTest.testNegative05_DuplicatePropertyInAttributeAndElement()

                JDOHelper.getPersistenceManagerFactory(String name)

                        JDOHelperConfigTest.testNegative08_NoResourcesFound()
                        JDOHelperTest.testGetPMFNullResource()
                        JDOHelperTest.testGetPMFBadResource()

                JDOHelper.getPersistenceManagerFactory(String name, ClassLoader loader)

                        JDOHelperConfigTest.testNegative03_DuplicateNamedPersistenceUnitsInSameConfig()
                        JDOHelperConfigTest.testNegative04_DuplicatePUNamePropertyInAttributeAndElement()
                        JDOHelperConfigTest.testNegative06_DuplicatePUInDifferentConfigFiles()
                        JDOHelperConfigTest.testNegative09_MultipleInvalidClassesInDifferentConfigFiles()
                        JDOHelperTest.testGetPMFNullResourceGoodClassLoader()
                        JDOHelperTest.testGetPMFBadResourceGoodClassLoader()
                        JDOHelperTest.testGetPMFNullClassLoader()
                
                JDOHelper.getPersistenceManagerFactory(String name, ClassLoader resourceLoader, ClassLoader pmfLoader)

                        JDOHelperTest.testGetPMFBothNullClassLoader()

                JDOHelper.getPersistenceManagerFactory(Map overrides, String name)
                JDOHelper.getPersistenceManagerFactory(Map overrides, String name, ClassLoader resourceLoader)

        JDOHelper.getPersistenceManagerFactory(Map props)

                JDOHelperTest.testGetPMFNoClassNameProperty()
                JDOHelperTest.testBadPMFClassNotFound()
                JDOHelperTest.testBadPMFNoGetPMFPropertiesMethod()
                JDOHelperTest.testBadPMFNoGetPMFMapMethod()
                JDOHelperTest.testBadPMFNonStaticGetPMFMethod()
                JDOHelperTest.testBadPMFGetPMFMethodThrowsJDOException()

        JDOHelper.getPersistenceManagerFactory(Map props, ClassLoader pmfClassLoader)

                JDOHelper.getPersistenceManagerFactory(InputStream stream, ClassLoader loader)

                        JDOHelper.getPersistenceManagerFactory(File propsFile, ClassLoader loader)
                        
                                JDOHelper.getPersistenceManagerFactory(File propsFile)

                                        JDOHelperTest.testGetPMFNullFile()
                                        JDOHelperTest.testGetPMFBadFile()

                                JDOHelperTest.testGetPMFNullFileGoodClassLoader()
                                JDOHelperTest.testGetPMFBadFileGoodClassLoader()

                        JDOHelper.getPersistenceManagerFactory(InputStream stream)

                                JDOHelperTest.testGetPMFNullStream()

                        JDOHelperTest.testGetPMFNullStreamGoodClassLoader()

JdoHelper (last edited 2009-09-20 23:08:37 by localhost)