FileDocCategorySizeDatePackage
JDOCreateDataStore.javaAPI DocExample630Sat Feb 28 22:22:38 GMT 2004None

JDOCreateDataStore

public class JDOCreateDataStore extends Object
Create a DataStore, initially empty. Typically only needed if using the JDO RI.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

			Properties p = new Properties();
			p.load(new FileInputStream("jdo.properties"));
			p.setProperty("com.sun.jdori.option.ConnectionCreate", "true");            
			PersistenceManagerFactory pmf =
					JDOHelper.getPersistenceManagerFactory(p);
			PersistenceManager pm = pmf.getPersistenceManager();
			Transaction tx = pm.currentTransaction();
			tx.begin();
			tx.commit();