198199200201202203204205206207208
CommDBManager mgr = (mgrArg == null ? dbmgr:mgrArg); Connection conn = null; try { if (createdb) { conn = mgr.connectToCreate(); conn.setAutoCommit( true ); } else { conn = mgr.newConnection( true ); // set autoCommit to true }