public static PersistenceManager createPersistenceManager ( ) { if ( Config . isUnitTestsEnabled ( ) ) { pmf = ( JDOPersistenceManagerFactory ) JDOHelper . getPersistenceManagerFactory ( JdoProperties . unit ( ) , "Alpine" ) ; } if ( pmf == null ) { throw new IllegalStateException ( "Context is not initialized yet." ) ; } return pmf . getPersistenceManager ( ) ; }
Creates a new JDO PersistenceManager .