}
// prof.dump (System.err, "MultiKeyLoad in >");
}
public void testNoAutoCommit () throws Exception {
String s = "The quick brown fox jumped over the lazy dog";
Profiler prof = new Profiler ();
synchronized (sp) {
sp.setAutoCommit (false);
for (int i=0; i<COUNT; i++) {
sp.out ("testNoAutoCommit_Key" + Integer.toString (i), s);
if (i % 100 == 0)
prof.checkPoint ("out " + i);
}
prof.checkPoint ("pre-commit");
sp.commit();
sp.setAutoCommit (true);
prof.checkPoint ("commit");
}
// prof.dump (System.err, "NoAutoCommit out >");
prof = new Profiler ();
synchronized (sp) {
sp.setAutoCommit (false);
for (int i=0; i<COUNT; i++) {
assertTrue (s.equals (sp.in ("testNoAutoCommit_Key" + Integer.toString (i))));
if (i % 100 == 0)
prof.checkPoint ("in " + i);
}
prof.checkPoint ("pre-commit");
sp.commit();
sp.setAutoCommit (true);
prof.checkPoint ("commit");
}
// prof.dump (System.err, "NoAutoCommit in >");
}