static JDOClass getJDOClass ( Class c ) { JDOClass rc = null ; try { JavaModelFactory javaModelFactory = RuntimeJavaModelFactory . getInstance ( ) ; JavaModel javaModel = javaModelFactory . getJavaModel ( c . getClassLoader ( ) ) ; JDOModel m = JDOModelFactoryImpl . getInstance ( ) . getJDOModel ( javaModel ) ; rc = m . getJDOClass ( c . getName ( ) ) ; } catch ( RuntimeException ex ) { throw new JDOFatalInternalException ( "Not a JDO class: " + c . getName ( ) ) ; } return rc ; }
this method looks up the appropriate JDOClass for a given persistent Class . It uses the JDOModel to perfom this lookup .