db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jdo Wiki] Update of "JdoHelper" by RichardSchilling
Date Thu, 11 Sep 2008 17:18:24 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jdo Wiki" for change notification.

The following page has been changed by RichardSchilling:
http://wiki.apache.org/jdo/JdoHelper

New page:
== javax.jdo.JDOHelper ==

Link to the class in the SVN repository: [http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/JDOHelper.java?view=log
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?"

{{{
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()


}}}

Mime
View raw message