the database configuration JDO.loadConfiguration( "database.xml" ); ... JDO jdo; Database db;
// construct a new JDO for the database 'mydb' jdo = new JDO( "mydb" );
// open a connection to the database db = jdo.getDatabase(); Or,
JDO jdo; Database db; // construct a new JDO for the database 'mydb' jdo = new JDO( "mydb" ); // specify the database configuration jdo.setConfiguration( "database.xml" ); // open a connection to the database db = jdo.getDatabase();
@deprecated JDO has been replaced by JDOManager.
@author
Assaf Arkin
@author
Bruce Snyder
@version $Revision: 7951 $ $Date: 2006-04-12 15:13:08 -0600 (Wed, 12 Apr 2006) $