|  |  | @ -98,17 +98,15 @@ public class Main implements Connector | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			StatementExecuterFactory.initialize(  |  |  |  | 			StatementExecuterFactory.initialize(  | 
			
		
	
		
		
			
				
					
					|  |  |  | 					new DBStatementExecuter( dbm.getSharedExecuter() ) ); |  |  |  | 					new DBStatementExecuter( dbm.getSharedExecuter() ) ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			 |  |  |  | 			initializeJPOX( url, user, passwd ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			Properties props = new Properties(); |  |  |  | ////			Properties props = new Properties();
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			props.load( classLoader.getResourceAsStream( "speedo.properties" ) ); |  |  |  | ////			props.load( classLoader.getResourceAsStream( "speedo.properties" ) );
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			props.setProperty( "javax.jdo.option.ConnectionURL", url ); |  |  |  | ////			props.setProperty( "javax.jdo.option.ConnectionURL", url );
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory( props ); |  |  |  | ////			PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory( props );
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | //			Collection c = pmf.supportedOptions();
 |  |  |  | ////			Singleton.setInstance( Singleton.DEFAULT_PERSISTENCE_MANAGER_FACTORY, pmf );
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | //			System.out.println( "Options: " + c );
 |  |  |  | ////			PersistenceManager pm = pmf.getPersistenceManager();
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			Singleton.setInstance( Singleton.DEFAULT_PERSISTENCE_MANAGER_FACTORY, pmf ); |  |  |  | ////			Singleton.setInstance( SingletonConstants.PERSISTENCE_MANAGER, pm );
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			PersistenceManager pm = pmf.getPersistenceManager(); |  |  |  | ////			com.evolute.utils.jdo.JDOObject.setPersistentManager( pm );
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			Singleton.setInstance( SingletonConstants.PERSISTENCE_MANAGER, pm ); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			com.evolute.utils.jdo.JDOObject.setPersistentManager( pm ); |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | //for( int i = 0; i < 5; ++i )
 |  |  |  | //for( int i = 0; i < 5; ++i )
 | 
			
		
	
		
		
			
				
					
					|  |  |  | //{
 |  |  |  | //{
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -237,4 +235,57 @@ public class Main implements Connector | 
			
		
	
		
		
			
				
					
					|  |  |  | 		return siprpTracker.getRoot(); |  |  |  | 		return siprpTracker.getRoot(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	public void initializeJPOX(String url, String user, String password) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		Date d = new Date(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | System.out.println( "INIT: " + d ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		Properties jpoxProps; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps = System.getProperties();//new Properties();
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		// Set the PersistenceManagerFactoryClass to the TJDO class.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.PersistenceManagerFactoryClass", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			"org.jpox.PersistenceManagerFactoryImpl" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		// Set the JDBC driver name.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.option.ConnectionDriverName", "com.mysql.jdbc.Driver" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.identifier.fullyQualifiedNames", "false" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		// props.setProperty("com.triactive.jdo.transactionIsolation",
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		// "read-uncommitted" );
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		// Set the connection URL
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //		jpoxProps.setProperty( "javax.jdo.option.ConnectionURL", "jdbc:informix-sqli://192.168.0.3:6666"
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //			+ "/apdp_db:informixserver=server" );
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.option.ConnectionURL", url ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.option.ConnectionUserName", user ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.option.ConnectionPassword", password ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.option.IgnoreCache", "true" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.option.NonTransactionalRead", "true" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.option.RetainValues", "true" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.autoCreateTables", "false" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.autoCreateSchema", "false" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.autoCreateConstraints", "false" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.validateTables", "false" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.validateConstraints", "false" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.autoStartMechanismMode", "Ignored" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.autoStartMechanism", "None" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "javax.jdo.option.RetainValues", "true" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //		jpoxProps.setProperty( "javax.jdo.option.Optimistic", "true" );
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //		jpoxProps.setProperty( "org.jpox.identifier.defaultSchemaName", "informix" );
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		jpoxProps.setProperty( "org.jpox.rdbms.CheckExistTablesOrViews", "false" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		System.setProperty( "org.jpox.catalogName", "siprp" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		System.setProperty( "org.jpox.schemaName", "" ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory( jpoxProps ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //		pmf.setOptimistic( true );
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | System.out.print( "Loading PM: " + new Date() ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		//   ( ( PersistenceManagerFactoryImpl )pmf ).setTransactionIsolation( Connection.TRANSACTION_READ_UNCOMMITTED );
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		// Retrieve a PersistenceManager from the PersistenceManagerFactory.
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		PersistenceManager pm = pmf.getPersistenceManager(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		JDOObject.setPersistentManager( pm ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | System.out.println( "PM done " + new Date() ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } |